TokenProvider

Trait TokenProvider 

Source
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 &'static str

Source§

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

Source§

impl TokenProvider for String

Source§

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

Implementors§