pub struct CliApproval { /* private fields */ }Expand description
Asks at the terminal: prints the request and reads y or n.
Anything but y/yes denies. End of input (no human attached) defers,
leaving the effect for an operator.
Implementations§
Trait Implementations§
Source§impl ApprovalProvider for CliApproval
impl ApprovalProvider for CliApproval
Source§async fn request(&self, request: ApprovalRequest) -> ApprovalDecision
async fn request(&self, request: ApprovalRequest) -> ApprovalDecision
Asks for a decision. May be called again for the same effect while
no decision has been made.
Auto Trait Implementations§
impl Freeze for CliApproval
impl RefUnwindSafe for CliApproval
impl Send for CliApproval
impl Sync for CliApproval
impl Unpin for CliApproval
impl UnsafeUnpin for CliApproval
impl UnwindSafe for CliApproval
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