pub struct AllowAllApprovalHandler;Expand description
Approval handler that approves Codex approval requests.
This answers command, file-change, legacy command, legacy patch, and permission-profile approval requests with the schema’s positive response. Requests that require app-specific data, such as dynamic tool calls, user input, auth-token refreshes, and MCP elicitations, are rejected with a clear JSON-RPC error instead of guessing.
Trait Implementations§
Source§impl ApprovalHandler for AllowAllApprovalHandler
impl ApprovalHandler for AllowAllApprovalHandler
fn handle<'a>(&'a self, request: &'a ServerRequest) -> ApprovalFuture<'a>
Source§impl Clone for AllowAllApprovalHandler
impl Clone for AllowAllApprovalHandler
Source§fn clone(&self) -> AllowAllApprovalHandler
fn clone(&self) -> AllowAllApprovalHandler
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 AllowAllApprovalHandler
impl Debug for AllowAllApprovalHandler
Source§impl Default for AllowAllApprovalHandler
impl Default for AllowAllApprovalHandler
Source§fn default() -> AllowAllApprovalHandler
fn default() -> AllowAllApprovalHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AllowAllApprovalHandler
impl RefUnwindSafe for AllowAllApprovalHandler
impl Send for AllowAllApprovalHandler
impl Sync for AllowAllApprovalHandler
impl Unpin for AllowAllApprovalHandler
impl UnsafeUnpin for AllowAllApprovalHandler
impl UnwindSafe for AllowAllApprovalHandler
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