pub struct AutoApproveHandler;Expand description
An approval handler that automatically approves all requests.
Trait Implementations§
Source§impl ApprovalHandler for AutoApproveHandler
impl ApprovalHandler for AutoApproveHandler
Source§fn request_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<ApprovalResult, ModuleError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
AutoApproveHandler: 'async_trait,
fn request_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<ApprovalResult, ModuleError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
AutoApproveHandler: 'async_trait,
Request approval for an operation. Returns the result.
Source§fn check_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
_approval_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ApprovalResult, ModuleError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
AutoApproveHandler: 'async_trait,
fn check_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
_approval_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ApprovalResult, ModuleError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
AutoApproveHandler: 'async_trait,
Check the current status of a pending approval by ID.
Source§impl Clone for AutoApproveHandler
impl Clone for AutoApproveHandler
Source§fn clone(&self) -> AutoApproveHandler
fn clone(&self) -> AutoApproveHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AutoApproveHandler
impl RefUnwindSafe for AutoApproveHandler
impl Send for AutoApproveHandler
impl Sync for AutoApproveHandler
impl Unpin for AutoApproveHandler
impl UnsafeUnpin for AutoApproveHandler
impl UnwindSafe for AutoApproveHandler
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