pub struct ForEachToolBlock {
pub name: String,
pub matches: ToolMatch,
pub apply: ApplyTemplate,
}Expand description
Phase I — for_each_tool directive: a tool-name-agnostic template
expanded at run time against the server’s tool list.
Fields§
§name: StringInvariant name template. May contain {{tool_name}}, replaced
at expansion time with the matched tool’s name.
matches: ToolMatchFilter that decides which tools the template applies to. When omitted, the template applies to every tool the server declares — useful for envelope-shape invariants that don’t care about specific annotations.
apply: ApplyTemplateBody of the generated invariant, minus name (provided by the
block) and tool (auto-set to the matched tool’s name).
Trait Implementations§
Source§impl Clone for ForEachToolBlock
impl Clone for ForEachToolBlock
Source§fn clone(&self) -> ForEachToolBlock
fn clone(&self) -> ForEachToolBlock
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 ForEachToolBlock
impl Debug for ForEachToolBlock
Source§impl<'de> Deserialize<'de> for ForEachToolBlock
impl<'de> Deserialize<'de> for ForEachToolBlock
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 ForEachToolBlock
impl RefUnwindSafe for ForEachToolBlock
impl Send for ForEachToolBlock
impl Sync for ForEachToolBlock
impl Unpin for ForEachToolBlock
impl UnsafeUnpin for ForEachToolBlock
impl UnwindSafe for ForEachToolBlock
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