Skip to main content

Lockfile

Struct Lockfile 

Source
pub struct Lockfile {
Show 19 fields pub lock_version: i64, pub generated_by: String, pub generated_at: String, pub manifest_hash: Option<String>, pub stack: BTreeMap<String, Value>, pub llm: Vec<LLM>, pub decision: Decision, pub harness: Harness, pub tool: Vec<Tool>, pub skill: Vec<Skill>, pub instructions: Vec<Instructions>, pub policy: Policy, pub context: Context, pub evidence: Evidence, pub verify: Verify, pub provenance: Provenance, pub base_lock: Option<String>, pub kind: Option<String>, pub optimize: Option<Value>,
}

Fields§

§lock_version: i64§generated_by: String§generated_at: String§manifest_hash: Option<String>§stack: BTreeMap<String, Value>§llm: Vec<LLM>§decision: Decision§harness: Harness§tool: Vec<Tool>§skill: Vec<Skill>§instructions: Vec<Instructions>§policy: Policy§context: Context§evidence: Evidence§verify: Verify§provenance: Provenance§base_lock: Option<String>

Optimization-only fields (see §5.9 / harness.opt.lock).

§kind: Option<String>§optimize: Option<Value>

Implementations§

Source§

impl Lockfile

Source

pub fn load(path: &Path) -> Result<Lockfile, Error>

Source

pub fn from_str(text: &str) -> Result<Lockfile, Error>

Source

pub fn save(&self, path: &Path) -> Result<(), Error>

Source

pub fn default_path(&self) -> &str

Source

pub fn check_manifest(&self, live_hash: &str) -> Vec<String>

Vector of manifest-drift violation strings (empty means clean).

Source

pub fn summary(&self) -> String

Trait Implementations§

Source§

impl Clone for Lockfile

Source§

fn clone(&self) -> Lockfile

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Lockfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for Lockfile

Source§

fn default() -> Lockfile

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Lockfile

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Lockfile, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Lockfile

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.