pub struct ToolConfirmation {
pub hint: String,
pub confirmed: bool,
pub payload: Option<Value>,
}Expand description
The state and details of a user confirmation request for a tool execution.
Fields§
§hint: StringMessage explaining to the user why confirmation is needed.
confirmed: boolThe user’s decision: true if approved.
payload: Option<Value>Application-specific data related to the request (None encodes as null).
Trait Implementations§
Source§impl Clone for ToolConfirmation
impl Clone for ToolConfirmation
Source§impl Debug for ToolConfirmation
impl Debug for ToolConfirmation
Source§impl Default for ToolConfirmation
impl Default for ToolConfirmation
Source§impl<'de> Deserialize<'de> for ToolConfirmation
impl<'de> Deserialize<'de> for ToolConfirmation
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
Source§impl PartialEq for ToolConfirmation
impl PartialEq for ToolConfirmation
Source§impl Serialize for ToolConfirmation
impl Serialize for ToolConfirmation
impl StructuralPartialEq for ToolConfirmation
Auto Trait Implementations§
impl Forget for ToolConfirmation
impl Freeze for ToolConfirmationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for ToolConfirmation
impl RefUnwindSafe for ToolConfirmation
impl Send for ToolConfirmation
impl Sync for ToolConfirmation
impl Unpin for ToolConfirmation
impl UnsafeUnpin for ToolConfirmationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ToolConfirmation
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