Skip to main content

ApprovalProvider

Trait ApprovalProvider 

Source
pub trait ApprovalProvider:
    Send
    + Sync
    + 'static {
    // Required method
    fn request(
        &self,
        request: ApprovalRequest,
    ) -> impl Future<Output = ApprovalDecision> + Send;
}
Expand description

Decides whether effects that require approval may run.

Required Methods§

Source

fn request( &self, request: ApprovalRequest, ) -> impl Future<Output = ApprovalDecision> + Send

Asks for a decision. May be called again for the same effect while no decision has been made.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§