pub struct MyTimestamp(/* private fields */);Expand description
Own structure to enforce xAPI requirements for timestamps.
Implementations§
Trait Implementations§
Source§impl Clone for MyTimestamp
impl Clone for MyTimestamp
Source§fn clone(&self) -> MyTimestamp
fn clone(&self) -> MyTimestamp
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 MyTimestamp
impl Debug for MyTimestamp
Source§impl<'de> Deserialize<'de> for MyTimestamp
impl<'de> Deserialize<'de> for MyTimestamp
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 MyTimestamp
impl Display for MyTimestamp
Source§impl FromStr for MyTimestamp
impl FromStr for MyTimestamp
Source§impl PartialEq for MyTimestamp
impl PartialEq for MyTimestamp
Source§fn eq(&self, other: &MyTimestamp) -> bool
fn eq(&self, other: &MyTimestamp) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MyTimestampwhere
Self: Display,
impl Serialize for MyTimestampwhere
Self: Display,
impl StructuralPartialEq for MyTimestamp
Auto Trait Implementations§
impl Freeze for MyTimestamp
impl RefUnwindSafe for MyTimestamp
impl Send for MyTimestamp
impl Sync for MyTimestamp
impl Unpin for MyTimestamp
impl UnsafeUnpin for MyTimestamp
impl UnwindSafe for MyTimestamp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.