pub enum Decision {
AllowOnce,
AllowForTurn,
Deny {
reason: Option<String>,
},
DenyAndStop,
}Expand description
An answer to an approval request (R8.3.1): the protocol’s decisions.
Variants§
AllowOnce
Run this call.
AllowForTurn
Run this call and the turn’s other calls of the tool.
Deny
Do not run it; the reason reaches the model.
DenyAndStop
Do not run it, and end the turn.
Trait Implementations§
impl Eq for Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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