#[non_exhaustive]pub struct GoogleOAuthParams {
pub scopes: Vec<String>,
pub version_info: String,
pub ticket: String,
/* private fields */
}Expand description
The params returned by Google OAuth flow redirects.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scopes: Vec<String>Required. The scopes returned by Google OAuth flow.
version_info: StringOptional. The version info returned by Google OAuth flow.
ticket: StringRequired. The ticket to be used for post processing the callback from Google OAuth flow.
Implementations§
Source§impl GoogleOAuthParams
impl GoogleOAuthParams
pub fn new() -> Self
Sourcepub fn set_scopes<T, V>(self, v: T) -> Self
pub fn set_scopes<T, V>(self, v: T) -> Self
Sourcepub fn set_version_info<T: Into<String>>(self, v: T) -> Self
pub fn set_version_info<T: Into<String>>(self, v: T) -> Self
Sets the value of version_info.
§Example
ⓘ
let x = GoogleOAuthParams::new().set_version_info("example");Trait Implementations§
Source§impl Clone for GoogleOAuthParams
impl Clone for GoogleOAuthParams
Source§fn clone(&self) -> GoogleOAuthParams
fn clone(&self) -> GoogleOAuthParams
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 GoogleOAuthParams
impl Debug for GoogleOAuthParams
Source§impl Default for GoogleOAuthParams
impl Default for GoogleOAuthParams
Source§fn default() -> GoogleOAuthParams
fn default() -> GoogleOAuthParams
Returns the “default value” for a type. Read more
Source§impl Message for GoogleOAuthParams
impl Message for GoogleOAuthParams
Source§impl PartialEq for GoogleOAuthParams
impl PartialEq for GoogleOAuthParams
impl StructuralPartialEq for GoogleOAuthParams
Auto Trait Implementations§
impl Freeze for GoogleOAuthParams
impl RefUnwindSafe for GoogleOAuthParams
impl Send for GoogleOAuthParams
impl Sync for GoogleOAuthParams
impl Unpin for GoogleOAuthParams
impl UnsafeUnpin for GoogleOAuthParams
impl UnwindSafe for GoogleOAuthParams
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