pub struct RelativeTime {
pub amount: i32,
pub unit: TimeUnit,
pub direction: TimeDirection,
}Fields§
§amount: i32§unit: TimeUnit§direction: TimeDirectionTrait Implementations§
Source§impl Clone for RelativeTime
impl Clone for RelativeTime
Source§fn clone(&self) -> RelativeTime
fn clone(&self) -> RelativeTime
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 RelativeTime
impl Debug for RelativeTime
Source§impl<'de> Deserialize<'de> for RelativeTime
impl<'de> Deserialize<'de> for RelativeTime
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 RelativeTime
impl PartialEq for RelativeTime
Source§impl Serialize for RelativeTime
impl Serialize for RelativeTime
impl StructuralPartialEq for RelativeTime
Auto Trait Implementations§
impl Freeze for RelativeTime
impl RefUnwindSafe for RelativeTime
impl Send for RelativeTime
impl Sync for RelativeTime
impl Unpin for RelativeTime
impl UnsafeUnpin for RelativeTime
impl UnwindSafe for RelativeTime
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