pub struct ContextCheckpointLiveStateV1 {Show 13 fields
pub schema_version: u32,
pub task: ContextCheckpointTaskV1,
pub progress: ContextCheckpointProgressV1,
pub decisions: Vec<ContextCheckpointDecisionV1>,
pub findings: Vec<ContextCheckpointTextV1>,
pub next_steps: Vec<ContextCheckpointTextV1>,
pub handoff_summary: ContextCheckpointTextV1,
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 the task.
Fields§
§schema_version: u32Schema version of the live-state contract.
task: ContextCheckpointTaskV1Active task.
progress: ContextCheckpointProgressV1Progress on the active task.
decisions: Vec<ContextCheckpointDecisionV1>Decisions taken, sorted by decision identity.
findings: Vec<ContextCheckpointTextV1>Findings worth carrying forward, in author order and unique.
next_steps: Vec<ContextCheckpointTextV1>Next steps, in execution order and unique.
handoff_summary: ContextCheckpointTextV1Bounded 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 this checkpoint resumes one.
learning_state: Option<ContextCheckpointLearningStateV1>Reference-only learning state, when one is pinned.
Implementations§
Source§impl ContextCheckpointLiveStateV1
impl ContextCheckpointLiveStateV1
Sourcepub const SCHEMA_VERSION: u32 = 1
pub const SCHEMA_VERSION: u32 = 1
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 ContextCheckpointLiveStateV1
impl Clone for ContextCheckpointLiveStateV1
Source§impl Debug for ContextCheckpointLiveStateV1
impl Debug for ContextCheckpointLiveStateV1
Source§impl<'de> Deserialize<'de> for ContextCheckpointLiveStateV1
impl<'de> Deserialize<'de> for ContextCheckpointLiveStateV1
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 ContextCheckpointLiveStateV1
impl StructuralPartialEq for ContextCheckpointLiveStateV1
Auto Trait Implementations§
impl Forget for ContextCheckpointLiveStateV1
impl Freeze for ContextCheckpointLiveStateV1where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ContextCheckpointDecisionV1>: Freeze,
PhantomData<ContextCheckpointTextV1>: Freeze,
PhantomData<ContextCheckpointFileV1>: Freeze,
PhantomData<ContextCheckpointPolicyPinV1>: Freeze,
PhantomData<ContextCheckpointPackagePinV1>: Freeze,
impl Move for ContextCheckpointLiveStateV1
impl RefUnwindSafe for ContextCheckpointLiveStateV1
impl Send for ContextCheckpointLiveStateV1where
RawVecInner: Send,
impl Sync for ContextCheckpointLiveStateV1where
RawVecInner: Sync,
impl Unpin for ContextCheckpointLiveStateV1
impl UnsafeUnpin for ContextCheckpointLiveStateV1where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ContextCheckpointDecisionV1>: UnsafeUnpin,
PhantomData<ContextCheckpointTextV1>: UnsafeUnpin,
PhantomData<ContextCheckpointFileV1>: UnsafeUnpin,
PhantomData<ContextCheckpointPolicyPinV1>: UnsafeUnpin,
PhantomData<ContextCheckpointPackagePinV1>: UnsafeUnpin,
impl UnwindSafe for ContextCheckpointLiveStateV1where
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