Struct strava::api::AccessToken
[−]
[src]
pub struct AccessToken { /* fields omitted */ }
A strava.com api access token.
You'll need to register/login at https://www.strava.com/developers to get a token. This is required for all requests.
Methods
impl AccessToken
[src]
fn new(token: String) -> AccessToken
[src]
Create an AccessToken from the supplied string
fn new_from_env() -> Result<AccessToken, VarError>
[src]
Create an AccessToken from the environment variable STRAVA_ACCESS_TOKEN
fn get(&self) -> &str
[src]
Get the token underlying string
This is used internally for building requests.
Trait Implementations
impl<'a> From<&'a str> for AccessToken
[src]
fn from(s: &'a str) -> AccessToken
[src]
Performs the conversion.