pub struct AccessTokenResponseSuccessfulBody<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<String>,
pub _extra: Option<Map<String, Value>>,
}
Fields
access_token: String
token_type: AccessTokenType
expires_in: Option<usize>
refresh_token: Option<String>
scope: Option<ScopeParameter<SCOPE>>
id_token: Option<String>
_extra: Option<Map<String, Value>>
Implementations
sourceimpl<SCOPE> SuccessfulBody<SCOPE>where
SCOPE: Scope,
impl<SCOPE> SuccessfulBody<SCOPE>where
SCOPE: Scope,
pub fn new(
access_token: String,
token_type: AccessTokenType,
expires_in: Option<usize>,
refresh_token: Option<String>,
scope: Option<ScopeParameter<SCOPE>>
) -> SuccessfulBody<SCOPE>
pub fn set_extra(&mut self, extra: Map<String, Value>)
pub fn extra(&self) -> Option<&Map<String, Value>>
pub fn try_from_t_with_string(
body: &SuccessfulBody<String>
) -> Result<SuccessfulBody<SCOPE>, ScopeFromStrError>
Trait Implementations
sourceimpl<SCOPE> Clone for SuccessfulBody<SCOPE>where
SCOPE: Clone + Scope,
impl<SCOPE> Clone for SuccessfulBody<SCOPE>where
SCOPE: Clone + Scope,
sourcefn clone(&self) -> SuccessfulBody<SCOPE>
fn clone(&self) -> SuccessfulBody<SCOPE>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<SCOPE> Debug for SuccessfulBody<SCOPE>where
SCOPE: Debug + Scope,
impl<SCOPE> Debug for SuccessfulBody<SCOPE>where
SCOPE: Debug + Scope,
sourceimpl<'de, SCOPE> Deserialize<'de> for SuccessfulBody<SCOPE>where
SCOPE: Scope + Deserialize<'de>,
impl<'de, SCOPE> Deserialize<'de> for SuccessfulBody<SCOPE>where
SCOPE: Scope + Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SuccessfulBody<SCOPE>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SuccessfulBody<SCOPE>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<SCOPE> From<&SuccessfulBody<SCOPE>> for SuccessfulBody<String>where
SCOPE: Scope,
impl<SCOPE> From<&SuccessfulBody<SCOPE>> for SuccessfulBody<String>where
SCOPE: Scope,
sourcefn from(body: &SuccessfulBody<SCOPE>) -> SuccessfulBody<String>
fn from(body: &SuccessfulBody<SCOPE>) -> SuccessfulBody<String>
Converts to this type from the input type.
sourceimpl<SCOPE> From<SuccessfulBody<SCOPE>> for SuccessfulBody<SCOPE>where
SCOPE: Scope,
impl<SCOPE> From<SuccessfulBody<SCOPE>> for SuccessfulBody<SCOPE>where
SCOPE: Scope,
sourcefn from(body: SuccessfulBody<SCOPE>) -> SuccessfulBody<SCOPE>
fn from(body: SuccessfulBody<SCOPE>) -> SuccessfulBody<SCOPE>
Converts to this type from the input type.
sourceimpl<SCOPE> Serialize for SuccessfulBody<SCOPE>where
SCOPE: Scope + Serialize,
impl<SCOPE> Serialize for SuccessfulBody<SCOPE>where
SCOPE: Scope + Serialize,
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more