pub enum CommandApprovalDecision {
Accept,
AcceptForSession,
Decline,
Cancel,
}Expand description
Decision for command execution approval.
Sent as part of CommandExecutionApprovalResponse when responding to
a command approval request from the server.
Variants§
Accept
Allow this specific command to execute.
AcceptForSession
Allow this command and similar future commands in this session.
Decline
Reject this command.
Cancel
Cancel the entire turn.
Trait Implementations§
Source§impl Clone for CommandApprovalDecision
impl Clone for CommandApprovalDecision
Source§fn clone(&self) -> CommandApprovalDecision
fn clone(&self) -> CommandApprovalDecision
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandApprovalDecision
impl Debug for CommandApprovalDecision
Source§impl<'de> Deserialize<'de> for CommandApprovalDecision
impl<'de> Deserialize<'de> for CommandApprovalDecision
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 CommandApprovalDecision
impl PartialEq for CommandApprovalDecision
Source§impl Serialize for CommandApprovalDecision
impl Serialize for CommandApprovalDecision
impl Eq for CommandApprovalDecision
impl StructuralPartialEq for CommandApprovalDecision
Auto Trait Implementations§
impl Freeze for CommandApprovalDecision
impl RefUnwindSafe for CommandApprovalDecision
impl Send for CommandApprovalDecision
impl Sync for CommandApprovalDecision
impl Unpin for CommandApprovalDecision
impl UnsafeUnpin for CommandApprovalDecision
impl UnwindSafe for CommandApprovalDecision
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