pub enum ApprovalChoice {
ApproveOnce,
AlwaysApprove,
Deny,
}Expand description
User’s choice when presented with an approval prompt.
Variants§
ApproveOnce
Approve this tool call once.
AlwaysApprove
Always approve this tool (add a rule).
Deny
Deny the tool call.
Trait Implementations§
Source§impl Clone for ApprovalChoice
impl Clone for ApprovalChoice
Source§fn clone(&self) -> ApprovalChoice
fn clone(&self) -> ApprovalChoice
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 ApprovalChoice
impl Debug for ApprovalChoice
Source§impl PartialEq for ApprovalChoice
impl PartialEq for ApprovalChoice
impl StructuralPartialEq for ApprovalChoice
Auto Trait Implementations§
impl Freeze for ApprovalChoice
impl RefUnwindSafe for ApprovalChoice
impl Send for ApprovalChoice
impl Sync for ApprovalChoice
impl Unpin for ApprovalChoice
impl UnsafeUnpin for ApprovalChoice
impl UnwindSafe for ApprovalChoice
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