pub struct FixedDecisionHandler {
pub decision: ApprovalDecision,
}Expand description
Test helper that always returns a fixed decision.
Fields§
§decision: ApprovalDecisionTrait Implementations§
Source§impl ApprovalHandler for FixedDecisionHandler
impl ApprovalHandler for FixedDecisionHandler
Source§fn ask<'life0, 'async_trait>(
&'life0 self,
_request: ApprovalRequest,
) -> Pin<Box<dyn Future<Output = ApprovalDecision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ask<'life0, 'async_trait>(
&'life0 self,
_request: ApprovalRequest,
) -> Pin<Box<dyn Future<Output = ApprovalDecision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Present the request to the user/host and return their decision.
Source§impl Clone for FixedDecisionHandler
impl Clone for FixedDecisionHandler
Source§fn clone(&self) -> FixedDecisionHandler
fn clone(&self) -> FixedDecisionHandler
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 FixedDecisionHandler
impl RefUnwindSafe for FixedDecisionHandler
impl Send for FixedDecisionHandler
impl Sync for FixedDecisionHandler
impl Unpin for FixedDecisionHandler
impl UnsafeUnpin for FixedDecisionHandler
impl UnwindSafe for FixedDecisionHandler
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