pub struct Stamp {
pub value: i64,
pub confidence: Confidence,
}Expand description
A timestamp tagged with its evidentiary confidence.
Pairing the value with its Confidence in the type makes the
authoritative-vs-inferred distinction impossible to drop on the floor: a
consumer cannot read value without also seeing how trustworthy it is.
Fields§
§value: i64Unix epoch seconds.
confidence: ConfidenceHow the value should be trusted.
Implementations§
Trait Implementations§
impl Copy for Stamp
impl Eq for Stamp
impl StructuralPartialEq for Stamp
Auto Trait Implementations§
impl Freeze for Stamp
impl RefUnwindSafe for Stamp
impl Send for Stamp
impl Sync for Stamp
impl Unpin for Stamp
impl UnsafeUnpin for Stamp
impl UnwindSafe for Stamp
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