pub struct InvariantFile {
pub version: u64,
pub metadata: Option<PackMetadata>,
pub invariants: Vec<Invariant>,
pub for_each_tool: Vec<ForEachToolBlock>,
pub sequences: Vec<Sequence>,
}Fields§
§version: u64§metadata: Option<PackMetadata>Pack-style metadata (name, description, parameters, extends). Optional: a v1/v2 invariants file omits the block entirely. (Phase G — version 3 introduces this; older versions ignore it.)
invariants: Vec<Invariant>§for_each_tool: Vec<ForEachToolBlock>Phase I — schema-aware invariant templates. Each block is
expanded against the live client.list_tools() result at run
time, producing one concrete Invariant per matching tool.
Default empty.
sequences: Vec<Sequence>Phase L — multi-step sequences. Each Sequence runs a chain of
tool calls against a single shared client, with later steps able
to reference earlier steps’ inputs and responses via
{{steps.<bind>.<jsonpath>}} substitutions. Default empty.
Trait Implementations§
Source§impl Clone for InvariantFile
impl Clone for InvariantFile
Source§fn clone(&self) -> InvariantFile
fn clone(&self) -> InvariantFile
Returns a duplicate of the value. Read more
1.0.0 · 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 InvariantFile
impl Debug for InvariantFile
Source§impl<'de> Deserialize<'de> for InvariantFile
impl<'de> Deserialize<'de> for InvariantFile
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 InvariantFile
impl RefUnwindSafe for InvariantFile
impl Send for InvariantFile
impl Sync for InvariantFile
impl Unpin for InvariantFile
impl UnsafeUnpin for InvariantFile
impl UnwindSafe for InvariantFile
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