pub struct ConnectUser {
pub id: String,
pub name: String,
pub email: Option<String>,
pub email_verified: Option<bool>,
pub avatar_url: Option<String>,
pub raw_data: Value,
pub access_token: SecretString,
pub refresh_token: Option<SecretString>,
pub expires_in: Option<u64>,
}Expand description
Represents a standardized user profile returned from any OAuth2 provider.
Fields§
§id: StringThe unique identifier of the user in the provider’s system.
name: StringThe full name or display name of the user.
email: Option<String>The email address of the user, if available and granted.
email_verified: Option<bool>Indicates whether the provider has verified the user’s email address.
avatar_url: Option<String>The URL to the user’s avatar/profile picture, if available.
raw_data: ValueThe raw JSON response received from the provider’s user endpoint. Useful for extracting provider-specific fields not covered by this struct.
access_token: SecretStringThe access token retrieved during the OAuth2 flow.
refresh_token: Option<SecretString>The refresh token retrieved during the OAuth2 flow (if provided).
expires_in: Option<u64>The token expiration time in seconds from the time it was granted (if provided).
Trait Implementations§
Source§impl Clone for ConnectUser
impl Clone for ConnectUser
Source§fn clone(&self) -> ConnectUser
fn clone(&self) -> ConnectUser
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 ConnectUser
impl Debug for ConnectUser
Source§impl<'de> Deserialize<'de> for ConnectUser
impl<'de> Deserialize<'de> for ConnectUser
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 ConnectUser
impl RefUnwindSafe for ConnectUser
impl Send for ConnectUser
impl Sync for ConnectUser
impl Unpin for ConnectUser
impl UnsafeUnpin for ConnectUser
impl UnwindSafe for ConnectUser
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