[][src]Enum punch_clock::Period

pub enum Period {
    All,
    Today,
    Yesterday,
    Week,
    LastWeek,
    Month,
    LastMonth,
}

Represents a period of time relative to now.

Variants

All

The period of time that began at the start of the first tracked event.

Today

The period of time that began at midnight at the start of the current day.

Yesterday

The period of time 24 hours in length that ended at midnight at the start of the current day.

Week

The period of time that began at midnight at the start of the last Monday that occurred (including the current day).

LastWeek

The period of time 7 days (168 hours) in length that ended at midnight at the start of the last Monday that occurred.

Month

The period of time that began at midnight at the start of the last day that occurred whose number was 1 (including the current day).

LastMonth

The period of time between the midnights at the beginning of the last two occurrences of days whose numbers were 1 (including the current day).

Trait Implementations

impl Clone for Period[src]

impl Debug for Period[src]

impl Display for Period[src]

impl Eq for Period[src]

impl FromStr for Period[src]

type Err = String

The associated error which can be returned from parsing.

impl PartialEq<Period> for Period[src]

impl StructuralEq for Period[src]

impl StructuralPartialEq for Period[src]

Auto Trait Implementations

impl RefUnwindSafe for Period

impl Send for Period

impl Sync for Period

impl Unpin for Period

impl UnwindSafe for Period

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> 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.