pub struct Authentication<'a> {
pub redirect_url: String,
pub csrf_token: CsrfToken,
pub scopes: &'a [&'a dyn ToGoogleScope],
}
Expand description
Authentication stuffs
Fields§
§redirect_url: String
URL to redirect user to
csrf_token: CsrfToken
CSRF token
scopes: &'a [&'a dyn ToGoogleScope]
Scopes that you used in crate::GoogleOAuth2Client::build_authorize_url
Trait Implementations§
Source§impl<'a> Clone for Authentication<'a>
impl<'a> Clone for Authentication<'a>
Source§fn clone(&self) -> Authentication<'a>
fn clone(&self) -> Authentication<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for Authentication<'a>
impl<'a> !RefUnwindSafe for Authentication<'a>
impl<'a> !Send for Authentication<'a>
impl<'a> !Sync for Authentication<'a>
impl<'a> Unpin for Authentication<'a>
impl<'a> !UnwindSafe for Authentication<'a>
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