pub struct ValidityInterval {
pub starts_at: String,
pub ends_at: String,
}Expand description
Validity interval for a capability.
Fields§
§starts_at: StringStart timestamp.
ends_at: StringEnd timestamp.
Implementations§
Trait Implementations§
Source§impl Clone for ValidityInterval
impl Clone for ValidityInterval
Source§fn clone(&self) -> ValidityInterval
fn clone(&self) -> ValidityInterval
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 moreSource§impl Debug for ValidityInterval
impl Debug for ValidityInterval
Source§impl<'de> Deserialize<'de> for ValidityInterval
impl<'de> Deserialize<'de> for ValidityInterval
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 PartialEq for ValidityInterval
impl PartialEq for ValidityInterval
Source§fn eq(&self, other: &ValidityInterval) -> bool
fn eq(&self, other: &ValidityInterval) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidityInterval
impl Serialize for ValidityInterval
impl StructuralPartialEq for ValidityInterval
Auto Trait Implementations§
impl Freeze for ValidityInterval
impl RefUnwindSafe for ValidityInterval
impl Send for ValidityInterval
impl Sync for ValidityInterval
impl Unpin for ValidityInterval
impl UnsafeUnpin for ValidityInterval
impl UnwindSafe for ValidityInterval
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