Trait golem_cloud_client::api::TokenClient

source ·
pub trait TokenClient {
    // Required methods
    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        account_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Token>, Error<TokenError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn post<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        account_id: &'life1 str,
        value: &'life2 CreateTokenDto,
    ) -> Pin<Box<dyn Future<Output = Result<UnsafeToken, Error<TokenError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn token_id_get<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        account_id: &'life1 str,
        token_id: &'life2 Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Token, Error<TokenError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn token_id_delete<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        account_id: &'life1 str,
        token_id: &'life2 Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<DeleteTokenResponse, Error<TokenError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

source

fn get<'life0, 'life1, 'async_trait>( &'life0 self, account_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Token>, Error<TokenError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn post<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, account_id: &'life1 str, value: &'life2 CreateTokenDto, ) -> Pin<Box<dyn Future<Output = Result<UnsafeToken, Error<TokenError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn token_id_get<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, account_id: &'life1 str, token_id: &'life2 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Token, Error<TokenError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn token_id_delete<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, account_id: &'life1 str, token_id: &'life2 Uuid, ) -> Pin<Box<dyn Future<Output = Result<DeleteTokenResponse, Error<TokenError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§