pub struct ArgExpect {
pub tool: String,
pub key: String,
pub equals: Option<String>,
pub contains: Option<String>,
}Expand description
An assertion about the arguments of a particular tool call.
Fields§
§tool: String§key: StringArgument name, e.g. path.
equals: Option<String>The stringified argument must equal this exactly.
contains: Option<String>The stringified argument must contain this (case-insensitive).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArgExpect
impl<'de> Deserialize<'de> for ArgExpect
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 ArgExpect
impl RefUnwindSafe for ArgExpect
impl Send for ArgExpect
impl Sync for ArgExpect
impl Unpin for ArgExpect
impl UnsafeUnpin for ArgExpect
impl UnwindSafe for ArgExpect
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