pub trait TokenProvider {
    // Required method
    fn get_token<'a>(&'a mut self) -> Result<&'a str, Status>;
}
Expand description

Helper trait for types or closures that can provide authentication tokens for Yandex Cloud.

Required Methods§

source

fn get_token<'a>(&'a mut self) -> Result<&'a str, Status>

Fetch a currently valid authentication token for Yandex Cloud.

Implementations on Foreign Types§

source§

impl TokenProvider for String

source§

fn get_token<'a>(&'a mut self) -> Result<&'a str, Status>

source§

impl TokenProvider for &'static str

source§

fn get_token(&mut self) -> Result<&'static str, Status>

Implementors§