pub enum PeriodKind {
Year,
Month,
Duration(Duration),
}
Expand description
Period kind.
Variants§
Trait Implementations§
source§impl Clone for PeriodKind
impl Clone for PeriodKind
source§fn clone(&self) -> PeriodKind
fn clone(&self) -> PeriodKind
Returns a copy 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 PeriodKind
impl Debug for PeriodKind
source§impl<'de> Deserialize<'de> for PeriodKind
impl<'de> Deserialize<'de> for PeriodKind
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 Display for PeriodKind
impl Display for PeriodKind
source§impl Hash for PeriodKind
impl Hash for PeriodKind
source§impl PartialEq<PeriodKind> for PeriodKind
impl PartialEq<PeriodKind> for PeriodKind
source§impl PartialOrd<PeriodKind> for PeriodKind
impl PartialOrd<PeriodKind> for PeriodKind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more