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 ContextCheckpointLiveStateV1
impl Move for ContextCheckpointLiveStateV1
impl RefUnwindSafe for ContextCheckpointLiveStateV1
impl Send for ContextCheckpointLiveStateV1
impl Sync for ContextCheckpointLiveStateV1
impl Unpin for ContextCheckpointLiveStateV1
impl UnsafeUnpin for ContextCheckpointLiveStateV1
impl UnwindSafe for ContextCheckpointLiveStateV1
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