Trait KeysApi

Source
pub trait KeysApi: Send + Sync {
    // Required methods
    fn create_key<'life0, 'async_trait>(
        &'life0 self,
        params: CreateKeyParams,
    ) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<CreateKeyError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_key<'life0, 'async_trait>(
        &'life0 self,
        params: DeleteKeyParams,
    ) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<DeleteKeyError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_key<'life0, 'async_trait>(
        &'life0 self,
        params: GetKeyParams,
    ) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<GetKeyError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_keys<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ApiKeysResponse, Error<GetKeysError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn create_key<'life0, 'async_trait>( &'life0 self, params: CreateKeyParams, ) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<CreateKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_key<'life0, 'async_trait>( &'life0 self, params: DeleteKeyParams, ) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<DeleteKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_key<'life0, 'async_trait>( &'life0 self, params: GetKeyParams, ) -> Pin<Box<dyn Future<Output = Result<ApiKey, Error<GetKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_keys<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ApiKeysResponse, Error<GetKeysError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§