Trait CheckAPI

Source
pub trait CheckAPI {
    // Required methods
    fn create_check<'life0, 'life1, 'async_trait>(
        &'life0 self,
        params: &'life1 CreateCheckParams,
    ) -> Pin<Box<dyn Future<Output = CryptoBotResult<Check>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_check<'life0, 'async_trait>(
        &'life0 self,
        check_id: u64,
    ) -> Pin<Box<dyn Future<Output = CryptoBotResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_checks<'life0, 'life1, 'async_trait>(
        &'life0 self,
        params: Option<&'life1 GetChecksParams>,
    ) -> Pin<Box<dyn Future<Output = CryptoBotResult<Vec<Check>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn create_check<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 CreateCheckParams, ) -> Pin<Box<dyn Future<Output = CryptoBotResult<Check>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete_check<'life0, 'async_trait>( &'life0 self, check_id: u64, ) -> Pin<Box<dyn Future<Output = CryptoBotResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_checks<'life0, 'life1, 'async_trait>( &'life0 self, params: Option<&'life1 GetChecksParams>, ) -> Pin<Box<dyn Future<Output = CryptoBotResult<Vec<Check>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§