Skip to main content

CredentialProvider

Trait CredentialProvider 

Source
pub trait CredentialProvider {
    type Error;

    // Required method
    fn credentials<'a>(
        &'a mut self,
        authority: &str,
        scope: Option<&str>,
    ) -> Result<Option<Credentials<'a>>, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn credentials<'a>( &'a mut self, authority: &str, scope: Option<&str>, ) -> Result<Option<Credentials<'a>>, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§