pub struct OAuthUserProfile {
pub email: String,
pub name: Option<String>,
pub profile_picture: Option<String>,
pub given_name: Option<String>,
pub family_name: Option<String>,
pub locale: Option<String>,
}
Expand description
User’s profile info fetched from the OAuth service. Returned as part of the identity claims
to be used as defaults for populating a PutProfile
request.
Fields§
§email: String
The user’s email
name: Option<String>
The user’s name
profile_picture: Option<String>
the user’s profile picture
given_name: Option<String>
The user’s given / first name
family_name: Option<String>
The user’s family / last name
locale: Option<String>
The user’s locale
Trait Implementations§
Source§impl Clone for OAuthUserProfile
impl Clone for OAuthUserProfile
Source§fn clone(&self) -> OAuthUserProfile
fn clone(&self) -> OAuthUserProfile
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 Debug for OAuthUserProfile
impl Debug for OAuthUserProfile
Source§impl<'de> Deserialize<'de> for OAuthUserProfile
impl<'de> Deserialize<'de> for OAuthUserProfile
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 OAuthUserProfile
impl RefUnwindSafe for OAuthUserProfile
impl Send for OAuthUserProfile
impl Sync for OAuthUserProfile
impl Unpin for OAuthUserProfile
impl UnwindSafe for OAuthUserProfile
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