pub struct DecisionId(/* private fields */);Expand description
128-bit identifier linking a runtime decision to its EvidenceLedger entry.
Structurally identical to TraceId but semantically distinct.
Implementations§
Source§impl DecisionId
impl DecisionId
Sourcepub const fn from_parts(ts_ms: u64, random: u128) -> Self
pub const fn from_parts(ts_ms: u64, random: u128) -> Self
Create from millisecond timestamp and random bits.
Sourcepub const fn timestamp_ms(self) -> u64
pub const fn timestamp_ms(self) -> u64
Extract the millisecond timestamp.
Sourcepub const fn from_bytes(bytes: [u8; 16]) -> Self
pub const fn from_bytes(bytes: [u8; 16]) -> Self
Construct from big-endian bytes.
Trait Implementations§
Source§impl Clone for DecisionId
impl Clone for DecisionId
Source§fn clone(&self) -> DecisionId
fn clone(&self) -> DecisionId
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 DecisionId
impl Debug for DecisionId
Source§impl<'de> Deserialize<'de> for DecisionId
impl<'de> Deserialize<'de> for DecisionId
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 DecisionId
impl Display for DecisionId
Source§impl FromStr for DecisionId
impl FromStr for DecisionId
Source§impl Hash for DecisionId
impl Hash for DecisionId
Source§impl Ord for DecisionId
impl Ord for DecisionId
Source§fn cmp(&self, other: &DecisionId) -> Ordering
fn cmp(&self, other: &DecisionId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DecisionId
impl PartialEq for DecisionId
Source§impl PartialOrd for DecisionId
impl PartialOrd for DecisionId
Source§impl Serialize for DecisionId
impl Serialize for DecisionId
impl Copy for DecisionId
impl Eq for DecisionId
impl StructuralPartialEq for DecisionId
Auto Trait Implementations§
impl Freeze for DecisionId
impl RefUnwindSafe for DecisionId
impl Send for DecisionId
impl Sync for DecisionId
impl Unpin for DecisionId
impl UnsafeUnpin for DecisionId
impl UnwindSafe for DecisionId
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