pub enum FrameScope {
Turn {
turn_id: TurnId,
source_version: ContextVersion,
},
Conversation {
conversation_id: ConversationId,
active_turn_id: TurnId,
source_version: ContextVersion,
},
}Expand description
Frame identity/provenance tag. Turn scopes a single-turn projection;
Conversation scopes the lossless merged view (history + active turn).
Adding a scope variant is additive; the scope never changes block-level
operation rules.
Variants§
Turn
Single-turn projection: only one turn’s committed facts.
Fields
§
source_version: ContextVersionThe turn’s ContextVersion the frame was built from; part of the
frame-identity preimage.
Conversation
Lossless merged view: conversation history plus the active turn.
Fields
§
conversation_id: ConversationIdThe conversation being projected.
§
source_version: ContextVersionThe active turn’s ContextVersion. History snapshots are
immutable; their session ordering lives in the runtime’s
HistoryEntry. Within one round the
(conversation_id, active_turn_id, source_version) triple is
constant, so it pins the frame input.
Trait Implementations§
Source§impl Clone for FrameScope
impl Clone for FrameScope
Source§fn clone(&self) -> FrameScope
fn clone(&self) -> FrameScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FrameScope
impl Debug for FrameScope
Source§impl<'de> Deserialize<'de> for FrameScope
impl<'de> Deserialize<'de> for FrameScope
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 FrameScope
Source§impl Hash for FrameScope
impl Hash for FrameScope
Source§impl PartialEq for FrameScope
impl PartialEq for FrameScope
Source§impl Serialize for FrameScope
impl Serialize for FrameScope
impl StructuralPartialEq for FrameScope
Auto Trait Implementations§
impl Freeze for FrameScope
impl RefUnwindSafe for FrameScope
impl Send for FrameScope
impl Sync for FrameScope
impl Unpin for FrameScope
impl UnsafeUnpin for FrameScope
impl UnwindSafe for FrameScope
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