#[non_exhaustive]pub struct ServiceAccountDelegationInfo {
pub principal_email: String,
pub principal_subject: String,
/* private fields */
}Expand description
Identity delegation history of an authenticated service account.
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.principal_email: StringThe email address of a Google account.
principal_subject: StringA string representing the principal_subject associated with the identity.
As compared to principal_email, supports principals that aren’t
associated with email addresses, such as third party principals. For most
identities, the format will be principal://iam.googleapis.com/{identity pool name}/subjects/{subject} except for some GKE identities
(GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy
format serviceAccount:{identity pool name}[{subject}]
Implementations§
Source§impl ServiceAccountDelegationInfo
impl ServiceAccountDelegationInfo
pub fn new() -> Self
Sourcepub fn set_principal_email<T: Into<String>>(self, v: T) -> Self
pub fn set_principal_email<T: Into<String>>(self, v: T) -> Self
Sets the value of principal_email.
§Example
ⓘ
let x = ServiceAccountDelegationInfo::new().set_principal_email("example");Sourcepub fn set_principal_subject<T: Into<String>>(self, v: T) -> Self
pub fn set_principal_subject<T: Into<String>>(self, v: T) -> Self
Sets the value of principal_subject.
§Example
ⓘ
let x = ServiceAccountDelegationInfo::new().set_principal_subject("example");Trait Implementations§
Source§impl Clone for ServiceAccountDelegationInfo
impl Clone for ServiceAccountDelegationInfo
Source§fn clone(&self) -> ServiceAccountDelegationInfo
fn clone(&self) -> ServiceAccountDelegationInfo
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 ServiceAccountDelegationInfo
impl Debug for ServiceAccountDelegationInfo
Source§impl Default for ServiceAccountDelegationInfo
impl Default for ServiceAccountDelegationInfo
Source§fn default() -> ServiceAccountDelegationInfo
fn default() -> ServiceAccountDelegationInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for ServiceAccountDelegationInfo
impl PartialEq for ServiceAccountDelegationInfo
Source§fn eq(&self, other: &ServiceAccountDelegationInfo) -> bool
fn eq(&self, other: &ServiceAccountDelegationInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServiceAccountDelegationInfo
Auto Trait Implementations§
impl Freeze for ServiceAccountDelegationInfo
impl RefUnwindSafe for ServiceAccountDelegationInfo
impl Send for ServiceAccountDelegationInfo
impl Sync for ServiceAccountDelegationInfo
impl Unpin for ServiceAccountDelegationInfo
impl UnwindSafe for ServiceAccountDelegationInfo
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