[][src]Enum vcard::properties::Anniversary

pub enum Anniversary {
    DateOrDateTime {
        calscale: Option<Calscale>,
        alternative_id: Option<AlternativeID>,
        any: Option<Set<Any>>,
        value: DateOrDateTime,
    },
    DateAndOrTime {
        alternative_id: Option<AlternativeID>,
        any: Option<Set<Any>>,
        value: DateAndOrTime,
    },
    Text {
        alternative_id: Option<AlternativeID>,
        any: Option<Set<Any>>,
        value: Text,
    },
}

Variants

DateOrDateTime

Fields of DateOrDateTime

calscale: Option<Calscale>alternative_id: Option<AlternativeID>any: Option<Set<Any>>value: DateOrDateTime
DateAndOrTime

Fields of DateAndOrTime

alternative_id: Option<AlternativeID>any: Option<Set<Any>>value: DateAndOrTime
Text

Fields of Text

alternative_id: Option<AlternativeID>any: Option<Set<Any>>value: Text

Implementations

impl Anniversary[src]

pub fn from_date_or_date_time(date_or_date_time: DateOrDateTime) -> Anniversary[src]

pub fn from_date_and_or_time(date_and_or_time: DateAndOrTime) -> Anniversary[src]

pub fn from_text(text: Text) -> Anniversary[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl Clone for Anniversary[src]

impl Debug for Anniversary[src]

impl Display for Anniversary[src]

impl Eq for Anniversary[src]

impl Hash for Anniversary[src]

impl PartialEq<Anniversary> for Anniversary[src]

impl Property for Anniversary[src]

impl StructuralEq for Anniversary[src]

impl StructuralPartialEq for Anniversary[src]

impl Validated for Anniversary[src]

impl ValidatedWrapper for Anniversary[src]

type Error = &'static str

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.