Skip to main content

GitHubAction

Trait GitHubAction 

Source
pub trait GitHubAction: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn description(&self) -> &str;
    fn similes(&self) -> Vec<&str>;
    fn validate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: &'life1 ActionContext,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handler<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        context: &'life1 ActionContext,
        service: &'life2 GitHubService,
    ) -> Pin<Box<dyn Future<Output = Result<ActionResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn description(&self) -> &str

Source

fn similes(&self) -> Vec<&str>

Source

fn validate<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 ActionContext, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn handler<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, context: &'life1 ActionContext, service: &'life2 GitHubService, ) -> Pin<Box<dyn Future<Output = Result<ActionResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§