pub enum PurposeType {
Admin(Admin),
Contact(Contact),
Prov(Prov),
OtherPurpose(OtherPurpose),
}Expand description
Type corresponding to possible <purpose> type values
Variants§
Admin(Admin)
Data for the <admin> tag
Contact(Contact)
Data for the <contact> tag
Prov(Prov)
Data for the <prov> tag
OtherPurpose(OtherPurpose)
Data for the <other> tag
Trait Implementations§
Source§impl Debug for PurposeType
impl Debug for PurposeType
impl Eq for PurposeType
Source§impl<'xml> FromXml<'xml> for PurposeType
impl<'xml> FromXml<'xml> for PurposeType
Source§type Accumulator = Option<PurposeType>
type Accumulator = Option<PurposeType>
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 PurposeType
impl PartialEq for PurposeType
impl StructuralPartialEq for PurposeType
Auto Trait Implementations§
impl Freeze for PurposeType
impl RefUnwindSafe for PurposeType
impl Send for PurposeType
impl Sync for PurposeType
impl Unpin for PurposeType
impl UnsafeUnpin for PurposeType
impl UnwindSafe for PurposeType
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