#[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
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: 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
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 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
Trait Implementations§
impl StructuralPartialEq for Principal
Auto Trait Implementations§
impl Freeze for Principal
impl RefUnwindSafe for Principal
impl Send for Principal
impl Sync for Principal
impl Unpin for Principal
impl UnwindSafe for Principal
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