pub struct Oauth2AuthenticationSession {
pub access_token: Option<String>,
pub expires_at: Option<String>,
pub refresh_token: Option<String>,
}
Fields§
§access_token: Option<String>
This is the OAuth2 access token.
expires_at: Option<String>
This is the OAuth2 access token expiration.
refresh_token: Option<String>
This is the OAuth2 refresh token.
Implementations§
Source§impl Oauth2AuthenticationSession
impl Oauth2AuthenticationSession
pub fn new() -> Oauth2AuthenticationSession
Trait Implementations§
Source§impl Clone for Oauth2AuthenticationSession
impl Clone for Oauth2AuthenticationSession
Source§fn clone(&self) -> Oauth2AuthenticationSession
fn clone(&self) -> Oauth2AuthenticationSession
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Oauth2AuthenticationSession
impl Debug for Oauth2AuthenticationSession
Source§impl Default for Oauth2AuthenticationSession
impl Default for Oauth2AuthenticationSession
Source§fn default() -> Oauth2AuthenticationSession
fn default() -> Oauth2AuthenticationSession
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Oauth2AuthenticationSession
impl<'de> Deserialize<'de> for Oauth2AuthenticationSession
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
impl StructuralPartialEq for Oauth2AuthenticationSession
Auto Trait Implementations§
impl Freeze for Oauth2AuthenticationSession
impl RefUnwindSafe for Oauth2AuthenticationSession
impl Send for Oauth2AuthenticationSession
impl Sync for Oauth2AuthenticationSession
impl Unpin for Oauth2AuthenticationSession
impl UnwindSafe for Oauth2AuthenticationSession
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