pub struct ServiceAccountGoogleWorkspaceCredentials {
pub scopes: &'static [&'static str],
pub subject: Option<String>,
pub credentials: ServiceAccount,
}Fields§
§scopes: &'static [&'static str]§subject: Option<String>§credentials: ServiceAccountImplementations§
Source§impl ServiceAccountGoogleWorkspaceCredentials
impl ServiceAccountGoogleWorkspaceCredentials
pub fn new(service_account: ServiceAccount) -> Self
pub fn with_subject(self, subject: &str) -> Self
pub async fn token(&self) -> Result<Value>
Trait Implementations§
Source§impl Clone for ServiceAccountGoogleWorkspaceCredentials
impl Clone for ServiceAccountGoogleWorkspaceCredentials
Source§fn clone(&self) -> ServiceAccountGoogleWorkspaceCredentials
fn clone(&self) -> ServiceAccountGoogleWorkspaceCredentials
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 Freeze for ServiceAccountGoogleWorkspaceCredentials
impl RefUnwindSafe for ServiceAccountGoogleWorkspaceCredentials
impl Send for ServiceAccountGoogleWorkspaceCredentials
impl Sync for ServiceAccountGoogleWorkspaceCredentials
impl Unpin for ServiceAccountGoogleWorkspaceCredentials
impl UnwindSafe for ServiceAccountGoogleWorkspaceCredentials
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