pub struct EffectiveInterval {
pub valid_from: DateTime<Utc>,
pub valid_until: Option<DateTime<Utc>>,
}Expand description
Half-open UTC interval [valid_from, valid_until).
Fields§
§valid_from: DateTime<Utc>§valid_until: Option<DateTime<Utc>>Implementations§
Trait Implementations§
Source§impl Clone for EffectiveInterval
impl Clone for EffectiveInterval
Source§fn clone(&self) -> EffectiveInterval
fn clone(&self) -> EffectiveInterval
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EffectiveInterval
Source§impl Debug for EffectiveInterval
impl Debug for EffectiveInterval
Source§impl<'de> Deserialize<'de> for EffectiveInterval
impl<'de> Deserialize<'de> for EffectiveInterval
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
impl Eq for EffectiveInterval
Source§impl Ord for EffectiveInterval
impl Ord for EffectiveInterval
Source§fn cmp(&self, other: &EffectiveInterval) -> Ordering
fn cmp(&self, other: &EffectiveInterval) -> Ordering
1.21.0 (const: unstable) · 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 EffectiveInterval
impl PartialEq for EffectiveInterval
Source§impl PartialOrd for EffectiveInterval
impl PartialOrd for EffectiveInterval
Source§impl Serialize for EffectiveInterval
impl Serialize for EffectiveInterval
impl StructuralPartialEq for EffectiveInterval
Auto Trait Implementations§
impl Freeze for EffectiveInterval
impl RefUnwindSafe for EffectiveInterval
impl Send for EffectiveInterval
impl Sync for EffectiveInterval
impl Unpin for EffectiveInterval
impl UnsafeUnpin for EffectiveInterval
impl UnwindSafe for EffectiveInterval
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