Struct crev_wot::Timestamped
source · pub struct Timestamped<T> {
pub date: DateTime<Utc>,
/* private fields */
}
Expand description
A T
with a timestamp
This allows easily keeping track of a most recent version
of T
. Typically T
is some information from a timestamped
proof of some kind.
Fields§
§date: DateTime<Utc>
Trait Implementations§
source§impl<T: Clone> Clone for Timestamped<T>
impl<T: Clone> Clone for Timestamped<T>
source§fn clone(&self) -> Timestamped<T>
fn clone(&self) -> Timestamped<T>
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<T: Debug> Debug for Timestamped<T>
impl<T: Debug> Debug for Timestamped<T>
source§impl<'a, T: WithReview + Content + CommonOps> From<&'a T> for Timestamped<Review>
impl<'a, T: WithReview + Content + CommonOps> From<&'a T> for Timestamped<Review>
source§impl From<Trust> for Timestamped<TrustLevel>
impl From<Trust> for Timestamped<TrustLevel>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Timestamped<T>where T: RefUnwindSafe,
impl<T> Send for Timestamped<T>where T: Send,
impl<T> Sync for Timestamped<T>where T: Sync,
impl<T> Unpin for Timestamped<T>where T: Unpin,
impl<T> UnwindSafe for Timestamped<T>where T: UnwindSafe,
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