Struct oauth2::authz_server::TokenError
[−]
[src]
pub struct TokenError { pub error: TokenErrorCode, pub error_description: Option<String>, pub error_uri: Option<String>, }
Fields
error: TokenErrorCode
error_description: Option<String>
error_uri: Option<String>
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
impl Debug for TokenError
[src]
impl Clone for TokenError
[src]
fn clone(&self) -> TokenError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more