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: String
§token_type: AccessTokenType
§expires_in: Option<usize>
§refresh_token: Option<String>
§scope: Option<ScopeParameter<SCOPE>>
§id_token: Option<IdToken>
§_extra: Option<Map<String, Value>>
Implementations§
Source§impl<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>>, ) -> Self
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<Self, ScopeFromStrError>
Trait Implementations§
Source§impl<SCOPE> Clone for SuccessfulBody<SCOPE>
impl<SCOPE> Clone for SuccessfulBody<SCOPE>
Source§fn clone(&self) -> SuccessfulBody<SCOPE>
fn clone(&self) -> SuccessfulBody<SCOPE>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<SCOPE> Debug for SuccessfulBody<SCOPE>
impl<SCOPE> Debug for SuccessfulBody<SCOPE>
Source§impl<'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>,
Source§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
Source§impl<SCOPE> From<&SuccessfulBody<SCOPE>> for SuccessfulBody<String>where
SCOPE: Scope,
impl<SCOPE> From<&SuccessfulBody<SCOPE>> for SuccessfulBody<String>where
SCOPE: Scope,
Source§fn from(body: &SuccessfulBody<SCOPE>) -> Self
fn from(body: &SuccessfulBody<SCOPE>) -> Self
Converts to this type from the input type.
Source§impl<SCOPE> From<SuccessfulBody<SCOPE>> for SuccessfulBody<SCOPE>where
SCOPE: Scope,
impl<SCOPE> From<SuccessfulBody<SCOPE>> for SuccessfulBody<SCOPE>where
SCOPE: Scope,
Source§fn from(body: SuccessfulBody<SCOPE>) -> Self
fn from(body: SuccessfulBody<SCOPE>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<SCOPE> Freeze for SuccessfulBody<SCOPE>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more