[][src]Enum orgize::elements::Timestamp

pub enum Timestamp<'a> {
    Active {
        start: Datetime<'a>,
        repeater: Option<Cow<'a, str>>,
        delay: Option<Cow<'a, str>>,
    },
    Inactive {
        start: Datetime<'a>,
        repeater: Option<Cow<'a, str>>,
        delay: Option<Cow<'a, str>>,
    },
    ActiveRange {
        start: Datetime<'a>,
        end: Datetime<'a>,
        repeater: Option<Cow<'a, str>>,
        delay: Option<Cow<'a, str>>,
    },
    InactiveRange {
        start: Datetime<'a>,
        end: Datetime<'a>,
        repeater: Option<Cow<'a, str>>,
        delay: Option<Cow<'a, str>>,
    },
    Diary {
        value: Cow<'a, str>,
    },
}

Timestamp Object

Variants

Active

Fields of Active

start: Datetime<'a>repeater: Option<Cow<'a, str>>delay: Option<Cow<'a, str>>
Inactive

Fields of Inactive

start: Datetime<'a>repeater: Option<Cow<'a, str>>delay: Option<Cow<'a, str>>
ActiveRange

Fields of ActiveRange

start: Datetime<'a>end: Datetime<'a>repeater: Option<Cow<'a, str>>delay: Option<Cow<'a, str>>
InactiveRange

Fields of InactiveRange

start: Datetime<'a>end: Datetime<'a>repeater: Option<Cow<'a, str>>delay: Option<Cow<'a, str>>
Diary

Fields of Diary

value: Cow<'a, str>

Implementations

impl<'_> Timestamp<'_>[src]

pub fn into_owned(self) -> Timestamp<'static>[src]

Trait Implementations

impl<'a> Clone for Timestamp<'a>[src]

impl<'a> Debug for Timestamp<'a>[src]

impl<'a> From<Timestamp<'a>> for Element<'a>[src]

impl<'a> Serialize for Timestamp<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Timestamp<'a>

impl<'a> Send for Timestamp<'a>

impl<'a> Sync for Timestamp<'a>

impl<'a> Unpin for Timestamp<'a>

impl<'a> UnwindSafe for Timestamp<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.