pub enum RetentionType {
Business(Business),
Indefinite(Indefinite),
Legal(Legal),
None(No),
Stated(Stated),
}Expand description
Type corresponding to possible <retention> type values
Variants§
Business(Business)
Data for the <business> tag
Indefinite(Indefinite)
Data for the <indefinite> tag
Legal(Legal)
Data for the <legal> tag
None(No)
Data for the <none> tag
Stated(Stated)
Data for the <stated> tag
Trait Implementations§
Source§impl Debug for RetentionType
impl Debug for RetentionType
impl Eq for RetentionType
Source§impl<'xml> FromXml<'xml> for RetentionType
impl<'xml> FromXml<'xml> for RetentionType
Source§type Accumulator = Option<RetentionType>
type Accumulator = Option<RetentionType>
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 RetentionType
impl PartialEq for RetentionType
impl StructuralPartialEq for RetentionType
Auto Trait Implementations§
impl Freeze for RetentionType
impl RefUnwindSafe for RetentionType
impl Send for RetentionType
impl Sync for RetentionType
impl Unpin for RetentionType
impl UnsafeUnpin for RetentionType
impl UnwindSafe for RetentionType
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