#[non_exhaustive]pub struct Principal {
pub principal: Option<Principal>,
/* private fields */
}Expand description
Users/Service accounts which have access for DNS binding on the intranet VPC corresponding to the consumer project.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.principal: Option<Principal>The consumer provided user/service account which needs to be granted permission to DNS bind with the intranet VPC corresponding to the consumer project.
Implementations§
Source§impl Principal
impl Principal
pub fn new() -> Self
Sourcepub fn set_principal<T: Into<Option<Principal>>>(self, v: T) -> Self
pub fn set_principal<T: Into<Option<Principal>>>(self, v: T) -> Self
Sets the value of principal.
Note that all the setters affecting principal are mutually
exclusive.
Sourcepub fn user(&self) -> Option<&String>
pub fn user(&self) -> Option<&String>
The value of principal
if it holds a User, None if the field is not set or
holds a different branch.
Sourcepub fn set_user<T: Into<String>>(self, v: T) -> Self
pub fn set_user<T: Into<String>>(self, v: T) -> Self
Sets the value of principal
to hold a User.
Note that all the setters affecting principal are
mutually exclusive.
Sourcepub fn service_account(&self) -> Option<&String>
pub fn service_account(&self) -> Option<&String>
The value of principal
if it holds a ServiceAccount, None if the field is not set or
holds a different branch.
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of principal
to hold a ServiceAccount.
Note that all the setters affecting principal are
mutually exclusive.