#[non_exhaustive]pub enum HeldFor {
Approval,
Hook,
Unknown(String),
}Expand description
What holds a tool call before it is admitted to execute. Open: a client reads an unknown value as held by something it does not know, never as released.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Approval
An approval prompt holds the call.
Hook
A pre-tool hook holds the call.
Unknown(String)
A value from a newer host, kept verbatim so the call still reads as held. Excluded from the generated schema; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HeldFor
impl<'de> Deserialize<'de> for HeldFor
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
impl Eq for HeldFor
impl StructuralPartialEq for HeldFor
Auto Trait Implementations§
impl Forget for HeldFor
impl Freeze for HeldFor
impl Move for HeldFor
impl RefUnwindSafe for HeldFor
impl Send for HeldFor
impl Sync for HeldFor
impl Unpin for HeldFor
impl UnsafeUnpin for HeldFor
impl UnwindSafe for HeldFor
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