pub trait Method {
// Required method
fn identifier(&self) -> Cow<'static, str>;
// Provided methods
fn domain_name(&self) -> Cow<'static, str> { ... }
fn method_name(&self) -> Cow<'static, str> { ... }
fn split(&self) -> (Cow<'static, str>, Cow<'static, str>) { ... }
}
Expand description
Method
s are message types that contain the field method = Self::identifier()
in their json body.
Required Methods§
Sourcefn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like: DOM.removeNode
Provided Methods§
Sourcefn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to: DOM
Sourcefn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain: removeNode