pub enum GoogleOAuth2APIv2 {
AuthUserinfoEmail,
AuthUserinfoProfile,
Openid,
}Expand description
Google OAuth2 API, v2
Variants§
AuthUserinfoEmail
Documentation: See your primary Google Account email address, Scope: https://www.googleapis.com/auth/userinfo.email
AuthUserinfoProfile
Documentation: See your personal info, including any personal info you’ve made publicly available, Scope: https://www.googleapis.com/auth/userinfo.profile
Openid
Documentation: Associate you with your personal info on Google, Scope: openid
Trait Implementations§
Source§impl Clone for GoogleOAuth2APIv2
impl Clone for GoogleOAuth2APIv2
Source§fn clone(&self) -> GoogleOAuth2APIv2
fn clone(&self) -> GoogleOAuth2APIv2
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 GoogleOAuth2APIv2
impl Debug for GoogleOAuth2APIv2
Source§impl FromGoogleScope<GoogleOAuth2APIv2> for GoogleOAuth2APIv2
impl FromGoogleScope<GoogleOAuth2APIv2> for GoogleOAuth2APIv2
Source§fn from_google_scope(google_scope: &str) -> Result<GoogleOAuth2APIv2, ()>
fn from_google_scope(google_scope: &str) -> Result<GoogleOAuth2APIv2, ()>
Converting Google Scope string to enum
This might return
Err if you input an invalid Google Scope.Source§impl Hash for GoogleOAuth2APIv2
impl Hash for GoogleOAuth2APIv2
Source§impl PartialEq for GoogleOAuth2APIv2
impl PartialEq for GoogleOAuth2APIv2
Source§impl ToGoogleScope for GoogleOAuth2APIv2
impl ToGoogleScope for GoogleOAuth2APIv2
Source§fn to_google_scope(&self) -> &'static str
fn to_google_scope(&self) -> &'static str
Converting the enum back to
str literalimpl Copy for GoogleOAuth2APIv2
impl Eq for GoogleOAuth2APIv2
impl StructuralPartialEq for GoogleOAuth2APIv2
Auto Trait Implementations§
impl Freeze for GoogleOAuth2APIv2
impl RefUnwindSafe for GoogleOAuth2APIv2
impl Send for GoogleOAuth2APIv2
impl Sync for GoogleOAuth2APIv2
impl Unpin for GoogleOAuth2APIv2
impl UnwindSafe for GoogleOAuth2APIv2
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