pub struct ServiceAccountAuth { /* private fields */ }Expand description
Service account authentication using JWT.
Implementations§
Source§impl ServiceAccountAuth
impl ServiceAccountAuth
Sourcepub fn new(credentials: ServiceAccountCredentials, scopes: Vec<String>) -> Self
pub fn new(credentials: ServiceAccountCredentials, scopes: Vec<String>) -> Self
Create new service account auth.
Sourcepub fn with_subject(self, subject: impl Into<String>) -> Self
pub fn with_subject(self, subject: impl Into<String>) -> Self
Set subject (for domain-wide delegation).
Trait Implementations§
Source§impl AuthStrategy for ServiceAccountAuth
impl AuthStrategy for ServiceAccountAuth
Auto Trait Implementations§
impl Freeze for ServiceAccountAuth
impl !RefUnwindSafe for ServiceAccountAuth
impl Send for ServiceAccountAuth
impl Sync for ServiceAccountAuth
impl Unpin for ServiceAccountAuth
impl !UnwindSafe for ServiceAccountAuth
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