pub struct SimplePrompter;Expand description
Simple approval prompter with clear options
Displays:
- y: approve once
- e: trust this exact call
- t: trust entire tool
- n: deny
Trait Implementations§
Source§impl ApprovalPrompter for SimplePrompter
impl ApprovalPrompter for SimplePrompter
Source§fn prompt(&self, _request: &PermissionRequest) -> AuthorizationResponse
fn prompt(&self, _request: &PermissionRequest) -> AuthorizationResponse
Prompt the user and return their choice
Auto Trait Implementations§
impl Freeze for SimplePrompter
impl RefUnwindSafe for SimplePrompter
impl Send for SimplePrompter
impl Sync for SimplePrompter
impl Unpin for SimplePrompter
impl UnsafeUnpin for SimplePrompter
impl UnwindSafe for SimplePrompter
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