pub struct SocialUserInfo {
pub provider: String,
pub provider_user_id: String,
pub email: String,
pub name: String,
pub avatar_url: Option<String>,
}Expand description
User information returned by a social login provider.
Fields§
§provider: StringProvider name (e.g., “github”, “google”).
provider_user_id: StringProvider-specific user ID.
email: StringUser email address.
name: StringUser display name.
avatar_url: Option<String>User avatar URL (optional).
Trait Implementations§
Source§impl Clone for SocialUserInfo
impl Clone for SocialUserInfo
Source§impl Debug for SocialUserInfo
impl Debug for SocialUserInfo
Source§impl<'de> Deserialize<'de> for SocialUserInfo
impl<'de> Deserialize<'de> for SocialUserInfo
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 SocialUserInfo
impl RefUnwindSafe for SocialUserInfo
impl Send for SocialUserInfo
impl Sync for SocialUserInfo
impl Unpin for SocialUserInfo
impl UnsafeUnpin for SocialUserInfo
impl UnwindSafe for SocialUserInfo
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