[−][src]Struct punch_clock::sheet::Sheet
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]
&mut self,
time: DateTime<Utc>
) -> Result<DateTime<Utc>, SheetError>
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]
&mut self,
time: DateTime<Utc>
) -> Result<DateTime<Utc>, SheetError>
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for Sheet[src]
impl Ord for Sheet[src]
fn cmp(&self, other: &Sheet) -> Ordering[src]
#[must_use]
fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Sheet> for Sheet[src]
impl PartialOrd<Sheet> for Sheet[src]
fn partial_cmp(&self, other: &Sheet) -> Option<Ordering>[src]
fn lt(&self, other: &Sheet) -> bool[src]
fn le(&self, other: &Sheet) -> bool[src]
fn gt(&self, other: &Sheet) -> bool[src]
fn ge(&self, other: &Sheet) -> bool[src]
impl Serialize for Sheet[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,