Trait imagevault::authentication::Authentication[][src]

pub trait Authentication {
    fn authenticate<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 mut self,
        client_identity: &'life1 str,
        client_secret: &'life2 str,
        base_url: &'life3 Url,
        reqwest_client: &'life4 Client
    ) -> Pin<Box<dyn Future<Output = Result<String, ImageVaultError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        Self: 'async_trait
; }
Expand description

Authentication

The underlying trait for ImageVault authentication

Required methods

Authenticate is called from the ImageVault Client whenever a request requiring authentication is made. It shouldn’t be called directly.

Remarks

Mutates the authentication if required.

Implementors