pub enum DefaultUnit {
Minute,
Hour,
Day,
Week,
}
Expand description
The default unit of time applied to logged time.
Variants§
Trait Implementations§
Source§impl Clone for DefaultUnit
impl Clone for DefaultUnit
Source§fn clone(&self) -> DefaultUnit
fn clone(&self) -> DefaultUnit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DefaultUnit
impl Debug for DefaultUnit
Source§impl Default for DefaultUnit
impl Default for DefaultUnit
Source§fn default() -> DefaultUnit
fn default() -> DefaultUnit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DefaultUnit
impl<'de> Deserialize<'de> for DefaultUnit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for DefaultUnit
impl Hash for DefaultUnit
Source§impl Ord for DefaultUnit
impl Ord for DefaultUnit
Source§fn cmp(&self, other: &DefaultUnit) -> Ordering
fn cmp(&self, other: &DefaultUnit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DefaultUnit
impl PartialEq for DefaultUnit
Source§impl PartialOrd for DefaultUnit
impl PartialOrd for DefaultUnit
Source§impl Serialize for DefaultUnit
impl Serialize for DefaultUnit
impl Copy for DefaultUnit
impl Eq for DefaultUnit
impl StructuralPartialEq for DefaultUnit
Auto Trait Implementations§
impl Freeze for DefaultUnit
impl RefUnwindSafe for DefaultUnit
impl Send for DefaultUnit
impl Sync for DefaultUnit
impl Unpin for DefaultUnit
impl UnwindSafe for DefaultUnit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more