pub struct OAuthCredential {
pub client_id: String,
pub access_token: String,
pub refresh_token: Option<String>,
pub expires_at: Option<u64>,
}Expand description
Credential for an OAuth provider.
Fields§
§client_id: String§access_token: String§refresh_token: Option<String>§expires_at: Option<u64>Unix timestamp in milliseconds when the token expires.
Trait Implementations§
Source§impl Clone for OAuthCredential
impl Clone for OAuthCredential
Source§fn clone(&self) -> OAuthCredential
fn clone(&self) -> OAuthCredential
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OAuthCredential
impl Debug for OAuthCredential
Source§impl<'de> Deserialize<'de> for OAuthCredential
impl<'de> Deserialize<'de> for OAuthCredential
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
Auto Trait Implementations§
impl Freeze for OAuthCredential
impl RefUnwindSafe for OAuthCredential
impl Send for OAuthCredential
impl Sync for OAuthCredential
impl Unpin for OAuthCredential
impl UnsafeUnpin for OAuthCredential
impl UnwindSafe for OAuthCredential
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