Struct oauth2::token_error::TokenError [] [src]

pub struct TokenError {
    pub error: TokenErrorCode,
    pub error_description: Option<String>,
    pub error_uri: Option<String>,
}

Fields

error
error_description
error_uri

Methods

impl TokenError
[src]

fn as_json(&self) -> String

Serde serialization serializes all fields, even the ones that are None. But the standard suggests they should be left out entirely if they do not apply. This function skips fields that are None. JSON Serde deserializer will deserialize missing fields as None, so we can use serde for the reverse.

Trait Implementations

Derived Implementations

impl Debug for TokenError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for TokenError
[src]

fn clone(&self) -> TokenError

fn clone_from(&mut self, source: &Self)
1.0.0