pub struct ReadOnlyApprovalHandler;Expand description
Approval handler for read-only integrations.
This answers currentTime/read and declines command/file-change approval
prompts without interrupting the turn. Permission escalations and other
app-specific server requests receive JSON-RPC errors so callers can handle
them explicitly if needed.
Trait Implementations§
Source§impl ApprovalHandler for ReadOnlyApprovalHandler
impl ApprovalHandler for ReadOnlyApprovalHandler
fn handle<'a>(&'a self, request: &'a ServerRequest) -> ApprovalFuture<'a>
Source§impl Clone for ReadOnlyApprovalHandler
impl Clone for ReadOnlyApprovalHandler
Source§fn clone(&self) -> ReadOnlyApprovalHandler
fn clone(&self) -> ReadOnlyApprovalHandler
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 ReadOnlyApprovalHandler
impl Debug for ReadOnlyApprovalHandler
Source§impl Default for ReadOnlyApprovalHandler
impl Default for ReadOnlyApprovalHandler
Source§fn default() -> ReadOnlyApprovalHandler
fn default() -> ReadOnlyApprovalHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReadOnlyApprovalHandler
impl RefUnwindSafe for ReadOnlyApprovalHandler
impl Send for ReadOnlyApprovalHandler
impl Sync for ReadOnlyApprovalHandler
impl Unpin for ReadOnlyApprovalHandler
impl UnsafeUnpin for ReadOnlyApprovalHandler
impl UnwindSafe for ReadOnlyApprovalHandler
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