#[non_exhaustive]pub struct Principal {
pub principal: Option<Principal>,
}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
Sets the value of principal.
Sourcepub fn get_user(&self) -> Option<&String>
pub fn get_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 get_service_account(&self) -> Option<&String>
pub fn get_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_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 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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Principal
impl<'de> Deserialize<'de> for Principal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for Principal
impl Message for Principal
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