pub struct PlanHeader {
pub version: String,
pub plan_id: Uuid,
pub goal: String,
pub created_at: String,
pub created_by: String,
pub budget_estimate_usd: f64,
pub determinism: DeterminismMode,
pub content_sha256: String,
pub signature: Option<String>,
pub max_escalations: u32,
pub steps: Vec<Step>,
}Expand description
Plan-level metadata and settings, including the step list (§4).
Fields§
§version: StringProtocol version. This spec = "0".
plan_id: UuidUnique identifier for this plan instance.
goal: StringHuman-readable goal.
created_at: StringISO 8601 creation timestamp.
created_by: StringPublisher: agent:<id> or human:<name>.
budget_estimate_usd: f64Total predicted LLM/compute cost in USD.
determinism: DeterminismModeDeterminism mode (§7).
content_sha256: StringSHA-256 of the canonical plan serialization (excluding this field and signature).
signature: Option<String>Optional Ed25519 signature over canonical bytes.
max_escalations: u32Max escalation count before giving up (§8.4). Default 3.
steps: Vec<Step>Ordered list of steps forming the plan DAG.
Trait Implementations§
Source§impl Clone for PlanHeader
impl Clone for PlanHeader
Source§fn clone(&self) -> PlanHeader
fn clone(&self) -> PlanHeader
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 PlanHeader
impl Debug for PlanHeader
Source§impl<'de> Deserialize<'de> for PlanHeader
impl<'de> Deserialize<'de> for PlanHeader
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
Auto Trait Implementations§
impl Freeze for PlanHeader
impl RefUnwindSafe for PlanHeader
impl Send for PlanHeader
impl Sync for PlanHeader
impl Unpin for PlanHeader
impl UnsafeUnpin for PlanHeader
impl UnwindSafe for PlanHeader
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