pub trait MethodAccess<'de, 's> {
type Error: Error;
type ContentDeserializer: Deserializer<'de, Error = Self::Error>;
// Required methods
fn src(&self) -> &'s str;
fn dst(&self) -> impl Iterator<Item = &'s str>;
fn desc(&self) -> Option<&'s str>;
fn dst_desc(&self) -> Option<impl Iterator<Item = &'s str>>;
fn content(self) -> Self::ContentDeserializer;
}Expand description
Method name, desc and content accessor.
Required Associated Types§
Sourcetype ContentDeserializer: Deserializer<'de, Error = Self::Error>
type ContentDeserializer: Deserializer<'de, Error = Self::Error>
Type of deserializer of the element’s contents.
Required Methods§
Sourcefn dst_desc(&self) -> Option<impl Iterator<Item = &'s str>>
fn dst_desc(&self) -> Option<impl Iterator<Item = &'s str>>
Descriptor of this field’s destinations.
Sourcefn content(self) -> Self::ContentDeserializer
fn content(self) -> Self::ContentDeserializer
Returns the content deserializer for further deserialization of this method.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".