pub struct FrameId(pub String);Expand description
Deterministic frame identity: a blake3 digest of the scope and round,
truncated to 16 hex chars. Equal (scope, round) inputs always yield the
same id; see from_scope for the preimage formats.
Tuple Fields§
§0: StringImplementations§
Source§impl FrameId
impl FrameId
Sourcepub fn from_scope(scope: &FrameScope, round_id: RoundId) -> Self
pub fn from_scope(scope: &FrameScope, round_id: RoundId) -> Self
Scope-driven deterministic derivation — the canonical entry. The Turn
branch replicates the historical preimage byte-for-byte
(turn|version|round, colon-separated) so historical frame ids are
unchanged.
Sourcepub fn deterministic(
turn_id: &TurnId,
source_version: ContextVersion,
round_id: RoundId,
) -> Self
pub fn deterministic( turn_id: &TurnId, source_version: ContextVersion, round_id: RoundId, ) -> Self
Turn-scope thin wrapper, pinned equal to from_scope(Turn) by test.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FrameId
impl<'de> Deserialize<'de> for FrameId
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
impl Eq for FrameId
impl StructuralPartialEq for FrameId
Auto Trait Implementations§
impl Freeze for FrameId
impl RefUnwindSafe for FrameId
impl Send for FrameId
impl Sync for FrameId
impl Unpin for FrameId
impl UnsafeUnpin for FrameId
impl UnwindSafe for FrameId
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