Struct oauth2_core::access_token_response::SuccessfulBody [−][src]
pub struct SuccessfulBody<SCOPE> where
SCOPE: Scope, {
pub access_token: String,
pub token_type: AccessTokenType,
pub expires_in: Option<usize>,
pub refresh_token: Option<String>,
pub scope: Option<ScopeParameter<SCOPE>>,
pub id_token: Option<IdToken>,
pub _extra: Option<Map<String, Value>>,
}Fields
access_token: Stringtoken_type: AccessTokenTypeexpires_in: Option<usize>refresh_token: Option<String>scope: Option<ScopeParameter<SCOPE>>id_token: Option<IdToken>_extra: Option<Map<String, Value>>Implementations
pub fn new(
access_token: String,
token_type: AccessTokenType,
expires_in: Option<usize>,
refresh_token: Option<String>,
scope: Option<ScopeParameter<SCOPE>>
) -> Self
pub fn try_from_t_with_string(
body: &SuccessfulBody<String>
) -> Result<Self, ScopeFromStrError>
Trait Implementations
impl<'de, SCOPE> Deserialize<'de> for SuccessfulBody<SCOPE> where
SCOPE: Scope,
SCOPE: Deserialize<'de>,
impl<'de, SCOPE> Deserialize<'de> for SuccessfulBody<SCOPE> where
SCOPE: Scope,
SCOPE: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<SCOPE> RefUnwindSafe for SuccessfulBody<SCOPE> where
SCOPE: RefUnwindSafe,
impl<SCOPE> Send for SuccessfulBody<SCOPE> where
SCOPE: Send,
impl<SCOPE> Sync for SuccessfulBody<SCOPE> where
SCOPE: Sync,
impl<SCOPE> Unpin for SuccessfulBody<SCOPE> where
SCOPE: Unpin,
impl<SCOPE> UnwindSafe for SuccessfulBody<SCOPE> where
SCOPE: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more