pub enum RecipientType {
Other(Other),
Ours(Ours),
Public(Public),
Same(Same),
Unrelated(Unrelated),
}Expand description
Type corresponding to possible <purpose> type values
Variants§
Other(Other)
Data for the <other> tag
Ours(Ours)
Data for the <ours> tag
Public(Public)
Data for the <public> tag
Same(Same)
Data for the <same> tag
Data for the <unrelated> tag
Trait Implementations§
Source§impl Debug for RecipientType
impl Debug for RecipientType
impl Eq for RecipientType
Source§impl<'xml> FromXml<'xml> for RecipientType
impl<'xml> FromXml<'xml> for RecipientType
Source§type Accumulator = Option<RecipientType>
type Accumulator = Option<RecipientType>
The accumulator type used during deserialization
Source§fn matches(id: Id<'_>, field: Option<Id<'_>>) -> bool
fn matches(id: Id<'_>, field: Option<Id<'_>>) -> bool
Check if an element or attribute matches this type
Source§fn deserialize<'cx>(
into: &mut Self::Accumulator,
field: &'static str,
deserializer: &mut Deserializer<'cx, 'xml>,
) -> Result<(), Error>
fn deserialize<'cx>( into: &mut Self::Accumulator, field: &'static str, deserializer: &mut Deserializer<'cx, 'xml>, ) -> Result<(), Error>
Deserialize from XML into an accumulator
Source§impl PartialEq for RecipientType
impl PartialEq for RecipientType
impl StructuralPartialEq for RecipientType
Auto Trait Implementations§
impl Freeze for RecipientType
impl RefUnwindSafe for RecipientType
impl Send for RecipientType
impl Sync for RecipientType
impl Unpin for RecipientType
impl UnsafeUnpin for RecipientType
impl UnwindSafe for RecipientType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more