pub struct ContextCheckpointLiveStateV2 {Show 13 fields
pub schema_version: u32,
pub task: ContextCheckpointTaskV2,
pub progress: ContextCheckpointProgressV2,
pub decisions: Vec<ContextCheckpointDecisionV2>,
pub findings: Vec<ContextCheckpointTextV2>,
pub next_steps: Vec<ContextCheckpointTextV2>,
pub handoff_summary: ContextCheckpointTextV2,
pub files: Vec<ContextCheckpointFileV1>,
pub profile_id: Option<ProfileId>,
pub policy_pins: Vec<ContextCheckpointPolicyPinV1>,
pub package_pins: Vec<ContextCheckpointPackagePinV1>,
pub session_state: Option<ContextCheckpointSessionStateV1>,
pub learning_state: Option<ContextCheckpointLearningStateV1>,
}Expand description
The portable live state needed to continue a V3 checkpoint.
Fields§
§schema_version: u32Schema version of the live-state contract.
task: ContextCheckpointTaskV2Active task.
progress: ContextCheckpointProgressV2Progress on the active task.
decisions: Vec<ContextCheckpointDecisionV2>Decisions taken, sorted by decision identity.
findings: Vec<ContextCheckpointTextV2>Findings worth carrying forward, in author order and unique.
next_steps: Vec<ContextCheckpointTextV2>Next steps, in execution order and unique.
handoff_summary: ContextCheckpointTextV2Bounded handoff summary for the next worker.
files: Vec<ContextCheckpointFileV1>Files in scope, sorted by source identity.
profile_id: Option<ProfileId>Tuning profile in force, when one is pinned.
policy_pins: Vec<ContextCheckpointPolicyPinV1>Policies pinned, sorted by policy identity.
package_pins: Vec<ContextCheckpointPackagePinV1>Packages pinned, sorted by package identity.
session_state: Option<ContextCheckpointSessionStateV1>Relevant portable session state, when one resumes a session.
learning_state: Option<ContextCheckpointLearningStateV1>Reference-only learning state, when one is pinned.
Implementations§
Source§impl ContextCheckpointLiveStateV2
impl ContextCheckpointLiveStateV2
Sourcepub const SCHEMA_VERSION: u32 = 2
pub const SCHEMA_VERSION: u32 = 2
Schema version represented by this type.
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate every live-state bound, ordering rule, and identity.
Trait Implementations§
Source§impl Clone for ContextCheckpointLiveStateV2
impl Clone for ContextCheckpointLiveStateV2
Source§impl Debug for ContextCheckpointLiveStateV2
impl Debug for ContextCheckpointLiveStateV2
Source§impl<'de> Deserialize<'de> for ContextCheckpointLiveStateV2
impl<'de> Deserialize<'de> for ContextCheckpointLiveStateV2
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 ContextCheckpointLiveStateV2
impl StructuralPartialEq for ContextCheckpointLiveStateV2
Auto Trait Implementations§
impl Forget for ContextCheckpointLiveStateV2
impl Freeze for ContextCheckpointLiveStateV2where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ContextCheckpointDecisionV2>: Freeze,
PhantomData<ContextCheckpointTextV2>: Freeze,
PhantomData<ContextCheckpointFileV1>: Freeze,
PhantomData<ContextCheckpointPolicyPinV1>: Freeze,
PhantomData<ContextCheckpointPackagePinV1>: Freeze,
impl Move for ContextCheckpointLiveStateV2
impl RefUnwindSafe for ContextCheckpointLiveStateV2
impl Send for ContextCheckpointLiveStateV2where
RawVecInner: Send,
impl Sync for ContextCheckpointLiveStateV2where
RawVecInner: Sync,
impl Unpin for ContextCheckpointLiveStateV2
impl UnsafeUnpin for ContextCheckpointLiveStateV2where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ContextCheckpointDecisionV2>: UnsafeUnpin,
PhantomData<ContextCheckpointTextV2>: UnsafeUnpin,
PhantomData<ContextCheckpointFileV1>: UnsafeUnpin,
PhantomData<ContextCheckpointPolicyPinV1>: UnsafeUnpin,
PhantomData<ContextCheckpointPackagePinV1>: UnsafeUnpin,
impl UnwindSafe for ContextCheckpointLiveStateV2where
RawVecInner: UnwindSafe,
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