pub trait ConfirmationService:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn confirm<'life0, 'async_trait>(
&'life0 self,
request: ConfirmationRequest,
) -> Pin<Box<dyn Future<Output = Result<ConfirmationDecision>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Ask a human before proceeding.
Implementations return quickly — this is not a long-running approval queue. A read-only product, or one that never wires this capability, gets a deny-all default so that no mutating action can slip through.
Required Methods§
fn confirm<'life0, 'async_trait>(
&'life0 self,
request: ConfirmationRequest,
) -> Pin<Box<dyn Future<Output = Result<ConfirmationDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".