pub struct CivicInstant {
pub secs: i64,
pub nanos: u32,
pub authority: String,
pub uncertainty_nanos: Option<u64>,
}Expand description
A civic instant — time asserted by a civic authority (W15).
The authority is the metrology institute or time source that asserts the instant. This makes the provenance of time claims explicit — “NIST says it’s 12:00” is different from “my local clock says it’s 12:00”.
Fields§
§secs: i64Unix seconds.
nanos: u32Nanoseconds within the second.
The authority IRI that asserted this time (e.g. “did:civic:nist”, “did:civic:gps”).
uncertainty_nanos: Option<u64>The uncertainty in the asserted time (nanoseconds).
Implementations§
Trait Implementations§
Source§impl Clone for CivicInstant
impl Clone for CivicInstant
Source§impl Debug for CivicInstant
impl Debug for CivicInstant
Source§impl PartialEq for CivicInstant
impl PartialEq for CivicInstant
impl StructuralPartialEq for CivicInstant
Auto Trait Implementations§
impl Freeze for CivicInstant
impl RefUnwindSafe for CivicInstant
impl Send for CivicInstant
impl Sync for CivicInstant
impl Unpin for CivicInstant
impl UnsafeUnpin for CivicInstant
impl UnwindSafe for CivicInstant
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