pub struct OAuthFieldMap {
pub id: String,
pub username: String,
pub email: String,
pub avatar: String,
}Expand description
Maps provider-specific JSON field names to our internal fields.
Fields§
§id: StringField containing the user’s unique ID: “id” (GitHub/GitLab) or “sub” (OIDC)
username: StringField containing the username: “login” (GitHub) or “username” (GitLab)
email: StringField containing the email: “email”
avatar: StringField containing the avatar URL: “avatar_url” or “picture”
Trait Implementations§
Source§impl Clone for OAuthFieldMap
impl Clone for OAuthFieldMap
Source§fn clone(&self) -> OAuthFieldMap
fn clone(&self) -> OAuthFieldMap
Returns a duplicate 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 OAuthFieldMap
impl Debug for OAuthFieldMap
Source§impl<'de> Deserialize<'de> for OAuthFieldMap
impl<'de> Deserialize<'de> for OAuthFieldMap
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 OAuthFieldMap
impl RefUnwindSafe for OAuthFieldMap
impl Send for OAuthFieldMap
impl Sync for OAuthFieldMap
impl Unpin for OAuthFieldMap
impl UnwindSafe for OAuthFieldMap
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