pub struct UserInfo {
pub provider: String,
pub provider_account_id: String,
pub email: String,
pub name: Option<String>,
}Expand description
Resolved identity returned by OAuthConfig::fetch_userinfo_full.
provider_account_id is the provider-stable subject id (Google sub,
GitHub numeric id) — what the account store keys on so a renamed
email doesn’t orphan the pylon account.
Fields§
§provider: String§provider_account_id: String§email: String§name: Option<String>Trait Implementations§
impl Eq for UserInfo
impl StructuralPartialEq for UserInfo
Auto Trait Implementations§
impl Freeze for UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnsafeUnpin for UserInfo
impl UnwindSafe for UserInfo
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