pub struct ConfirmationOption {
pub id: String,
pub label: String,
pub kind: ConfirmationOptionKind,
pub group: Option<i64>,
}Expand description
A confirmation option that the server offers for a tool call awaiting approval. Allows richer choices beyond simple approve/deny — for example, “Approve in this Session” or “Deny with reason.”
Fields§
§id: StringUnique identifier for the option, returned in the confirmed action
label: StringHuman-readable label displayed to the user
kind: ConfirmationOptionKindWhether this option represents an approval or denial
group: Option<i64>Logical group number for visual categorisation.
Clients SHOULD display options in the order they are defined and MAY use differing group numbers to insert dividers between logical clusters of options.
Trait Implementations§
Source§impl Clone for ConfirmationOption
impl Clone for ConfirmationOption
Source§fn clone(&self) -> ConfirmationOption
fn clone(&self) -> ConfirmationOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConfirmationOption
impl Debug for ConfirmationOption
Source§impl<'de> Deserialize<'de> for ConfirmationOption
impl<'de> Deserialize<'de> for ConfirmationOption
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 ConfirmationOption
impl PartialEq for ConfirmationOption
Source§fn eq(&self, other: &ConfirmationOption) -> bool
fn eq(&self, other: &ConfirmationOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfirmationOption
impl Serialize for ConfirmationOption
impl StructuralPartialEq for ConfirmationOption
Auto Trait Implementations§
impl Freeze for ConfirmationOption
impl RefUnwindSafe for ConfirmationOption
impl Send for ConfirmationOption
impl Sync for ConfirmationOption
impl Unpin for ConfirmationOption
impl UnsafeUnpin for ConfirmationOption
impl UnwindSafe for ConfirmationOption
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