Api

Trait Api 

Source
pub trait Api {
    // Required methods
    fn auth_password<'life0, 'async_trait>(
        &'life0 self,
        method: Method,
        host: Host,
        cookies: CookieJar,
        body: PasswordAuthRequest,
    ) -> Pin<Box<dyn Future<Output = Result<AuthPasswordResponse, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn auth_pub_key<'life0, 'async_trait>(
        &'life0 self,
        method: Method,
        host: Host,
        cookies: CookieJar,
        body: PublicKeyAuthRequest,
    ) -> Pin<Box<dyn Future<Output = Result<AuthPubKeyResponse, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn authz<'life0, 'async_trait>(
        &'life0 self,
        method: Method,
        host: Host,
        cookies: CookieJar,
        body: AuthorizationRequest,
    ) -> Pin<Box<dyn Future<Output = Result<AuthzResponse, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_user_configuration<'life0, 'async_trait>(
        &'life0 self,
        method: Method,
        host: Host,
        cookies: CookieJar,
        body: Option<ConfigRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<GetUserConfigurationResponse, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

API

Required Methods§

Source

fn auth_password<'life0, 'async_trait>( &'life0 self, method: Method, host: Host, cookies: CookieJar, body: PasswordAuthRequest, ) -> Pin<Box<dyn Future<Output = Result<AuthPasswordResponse, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

AuthPassword - POST /password

Source

fn auth_pub_key<'life0, 'async_trait>( &'life0 self, method: Method, host: Host, cookies: CookieJar, body: PublicKeyAuthRequest, ) -> Pin<Box<dyn Future<Output = Result<AuthPubKeyResponse, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

AuthPubKey - POST /pubkey

Source

fn authz<'life0, 'async_trait>( &'life0 self, method: Method, host: Host, cookies: CookieJar, body: AuthorizationRequest, ) -> Pin<Box<dyn Future<Output = Result<AuthzResponse, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Authz - POST /authz

Source

fn get_user_configuration<'life0, 'async_trait>( &'life0 self, method: Method, host: Host, cookies: CookieJar, body: Option<ConfigRequest>, ) -> Pin<Box<dyn Future<Output = Result<GetUserConfigurationResponse, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GetUserConfiguration - POST /config

Implementors§