#[non_exhaustive]pub struct OAuthToken {
pub service_account_email: String,
pub scope: String,
/* private fields */
}Expand description
Contains information needed for generating an OAuth token. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
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.service_account_email: StringService account email to be used for generating OAuth token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account.
scope: StringOAuth scope to be used for generating OAuth access token.
If not specified, https://www.googleapis.com/auth/cloud-platform
will be used.
Implementations§
Source§impl OAuthToken
impl OAuthToken
Trait Implementations§
Source§impl Clone for OAuthToken
impl Clone for OAuthToken
Source§fn clone(&self) -> OAuthToken
fn clone(&self) -> OAuthToken
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 OAuthToken
impl Debug for OAuthToken
Source§impl Default for OAuthToken
impl Default for OAuthToken
Source§fn default() -> OAuthToken
fn default() -> OAuthToken
Returns the “default value” for a type. Read more
Source§impl PartialEq for OAuthToken
impl PartialEq for OAuthToken
impl StructuralPartialEq for OAuthToken
Auto Trait Implementations§
impl Freeze for OAuthToken
impl RefUnwindSafe for OAuthToken
impl Send for OAuthToken
impl Sync for OAuthToken
impl Unpin for OAuthToken
impl UnwindSafe for OAuthToken
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