pub enum ApprovalAnswer {
Yes,
No,
Abort,
}Expand description
User’s response to an approval prompt.
Variants§
Yes
Proceed with execution.
No
Skip this tool call (return a “rejected” message to the AI).
Abort
Abort the entire turn.
Trait Implementations§
Source§impl Clone for ApprovalAnswer
impl Clone for ApprovalAnswer
Source§fn clone(&self) -> ApprovalAnswer
fn clone(&self) -> ApprovalAnswer
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 ApprovalAnswer
impl Debug for ApprovalAnswer
Source§impl PartialEq for ApprovalAnswer
impl PartialEq for ApprovalAnswer
Source§fn eq(&self, other: &ApprovalAnswer) -> bool
fn eq(&self, other: &ApprovalAnswer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ApprovalAnswer
impl Eq for ApprovalAnswer
impl StructuralPartialEq for ApprovalAnswer
Auto Trait Implementations§
impl Freeze for ApprovalAnswer
impl RefUnwindSafe for ApprovalAnswer
impl Send for ApprovalAnswer
impl Sync for ApprovalAnswer
impl Unpin for ApprovalAnswer
impl UnsafeUnpin for ApprovalAnswer
impl UnwindSafe for ApprovalAnswer
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