Auth

Trait Auth 

Source
pub trait Auth: ClientAbciQuery + Sized {
    // Provided methods
    fn auth_query_account<'life0, 'async_trait>(
        &'life0 self,
        address: Address,
    ) -> Pin<Box<dyn Future<Output = Result<AccountResponse, AccountError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn auth_query_accounts<'life0, 'async_trait>(
        &'life0 self,
        pagination: Option<PaginationRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<AccountsResponse, AccountError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn auth_query_params<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ParamsResponse, AccountError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Provided Methods§

Source

fn auth_query_account<'life0, 'async_trait>( &'life0 self, address: Address, ) -> Pin<Box<dyn Future<Output = Result<AccountResponse, AccountError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source

fn auth_query_accounts<'life0, 'async_trait>( &'life0 self, pagination: Option<PaginationRequest>, ) -> Pin<Box<dyn Future<Output = Result<AccountsResponse, AccountError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source

fn auth_query_params<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ParamsResponse, AccountError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Auth for T
where T: ClientAbciQuery,