[][src]Struct punch_clock::sheet::Sheet

pub struct Sheet {
    pub events: Vec<Event>,
}

Fields

events: Vec<Event>

Methods

impl Sheet[src]

pub fn punch_in(&mut self) -> Result<DateTime<Utc>, SheetError>[src]

pub fn punch_in_at(
    &mut self,
    time: DateTime<Utc>
) -> Result<DateTime<Utc>, SheetError>
[src]

pub fn punch_out(&mut self) -> Result<DateTime<Utc>, SheetError>[src]

pub fn punch_out_at(
    &mut self,
    time: DateTime<Utc>
) -> Result<DateTime<Utc>, SheetError>
[src]

pub fn status(&self) -> SheetStatus[src]

pub fn count_range(&self, begin: DateTime<Utc>, end: DateTime<Utc>) -> Duration[src]

Trait Implementations

impl Clone for Sheet[src]

impl Debug for Sheet[src]

impl Default for Sheet[src]

impl<'de> Deserialize<'de> for Sheet[src]

impl Eq for Sheet[src]

impl Ord for Sheet[src]

impl PartialEq<Sheet> for Sheet[src]

impl PartialOrd<Sheet> for Sheet[src]

impl Serialize for Sheet[src]

impl StructuralEq for Sheet[src]

impl StructuralPartialEq for Sheet[src]

Auto Trait Implementations

impl RefUnwindSafe for Sheet

impl Send for Sheet

impl Sync for Sheet

impl Unpin for Sheet

impl UnwindSafe for Sheet

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.