pub struct ServiceAccount {
pub service_account_credential: Option<ServiceAccountCredential>,
pub scopes: Option<Vec<String>>,
pub use_default_credential: bool,
pub use_id_token: bool,
pub audience: String,
pub extra: Extra,
}Expand description
A service-account credential: either an explicit key or Application Default Credentials, with
the scopes to request or, for an ID token, its audience. Decoding rejects a value with neither
a key nor useDefaultCredential, and useIdToken without an audience.
Fields§
§service_account_credential: Option<ServiceAccountCredential>"serviceAccountCredential": the key; required unless
use_default_credential is set.
scopes: Option<Vec<String>>omitzero.
use_default_credential: boolAlways written.
use_id_token: boolAlways written.
audience: String"audience": the ID token audience; required with
use_id_token.
extra: ExtraUnknown keys, written back after the fields.
Trait Implementations§
Source§impl Clone for ServiceAccount
impl Clone for ServiceAccount
Source§impl Debug for ServiceAccount
The values in extra are redacted; the key redacts itself.
impl Debug for ServiceAccount
The values in extra are redacted; the key redacts itself.
Source§impl Default for ServiceAccount
impl Default for ServiceAccount
Source§impl<'de> Deserialize<'de> for ServiceAccount
impl<'de> Deserialize<'de> for ServiceAccount
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ServiceAccount
impl PartialEq for ServiceAccount
Auto Trait Implementations§
impl Forget for ServiceAccount
impl Freeze for ServiceAccount
impl Move for ServiceAccount
impl RefUnwindSafe for ServiceAccount
impl Send for ServiceAccount
impl Sync for ServiceAccount
impl Unpin for ServiceAccount
impl UnsafeUnpin for ServiceAccount
impl UnwindSafe for ServiceAccount
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