Trait WebHookFetching

Source
pub trait WebHookFetching:
    Interface
    + Send
    + Sync {
    // Required methods
    fn get<'life0, 'async_trait>(
        &'life0 self,
        id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<FetchResponseKind<WebHook, Uuid>, MappedErrors>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list<'life0, 'async_trait>(
        &'life0 self,
        name: Option<String>,
        trigger: Option<WebHookTrigger>,
    ) -> Pin<Box<dyn Future<Output = Result<FetchManyResponseKind<WebHook>, MappedErrors>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_by_trigger<'life0, 'async_trait>(
        &'life0 self,
        trigger: WebHookTrigger,
    ) -> Pin<Box<dyn Future<Output = Result<FetchManyResponseKind<WebHook>, MappedErrors>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_execution_event<'life0, 'async_trait>(
        &'life0 self,
        max_events: u32,
        max_attempts: u32,
        status: Option<Vec<WebHookExecutionStatus>>,
    ) -> Pin<Box<dyn Future<Output = Result<FetchManyResponseKind<WebHookPayloadArtifact>, MappedErrors>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<FetchResponseKind<WebHook, Uuid>, MappedErrors>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list<'life0, 'async_trait>( &'life0 self, name: Option<String>, trigger: Option<WebHookTrigger>, ) -> Pin<Box<dyn Future<Output = Result<FetchManyResponseKind<WebHook>, MappedErrors>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_by_trigger<'life0, 'async_trait>( &'life0 self, trigger: WebHookTrigger, ) -> Pin<Box<dyn Future<Output = Result<FetchManyResponseKind<WebHook>, MappedErrors>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List all webhooks by trigger

WARNING: This method should only be used for internal purposes.

Source

fn fetch_execution_event<'life0, 'async_trait>( &'life0 self, max_events: u32, max_attempts: u32, status: Option<Vec<WebHookExecutionStatus>>, ) -> Pin<Box<dyn Future<Output = Result<FetchManyResponseKind<WebHookPayloadArtifact>, MappedErrors>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§