OperationInvocation

Trait OperationInvocation 

Source
pub trait OperationInvocation<CTX: Send>: Send + Sync {
    // Required methods
    fn execute<'a>(
        &self,
        ctx: CTX,
        tenant: TenantId,
        project: ProjectId,
        request: &'a InvocationRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Resource, OperationOutcomeError>> + Send + 'a>>;
    fn code<'a>(&'a self) -> &'a str;
}

Required Methods§

Source

fn execute<'a>( &self, ctx: CTX, tenant: TenantId, project: ProjectId, request: &'a InvocationRequest, ) -> Pin<Box<dyn Future<Output = Result<Resource, OperationOutcomeError>> + Send + 'a>>

Source

fn code<'a>(&'a self) -> &'a str

Implementors§