pub enum ExpiryType {
Absolute(Absolute),
Relative(Relative),
}Expand description
Type corresponding to possible <expiry> type values
Variants§
Trait Implementations§
Source§impl Debug for ExpiryType
impl Debug for ExpiryType
impl Eq for ExpiryType
Source§impl<'xml> FromXml<'xml> for ExpiryType
impl<'xml> FromXml<'xml> for ExpiryType
Source§type Accumulator = Option<ExpiryType>
type Accumulator = Option<ExpiryType>
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 ExpiryType
impl PartialEq for ExpiryType
impl StructuralPartialEq for ExpiryType
Auto Trait Implementations§
impl Freeze for ExpiryType
impl RefUnwindSafe for ExpiryType
impl Send for ExpiryType
impl Sync for ExpiryType
impl Unpin for ExpiryType
impl UnsafeUnpin for ExpiryType
impl UnwindSafe for ExpiryType
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