#[non_exhaustive]pub struct CreateImpersonationRoleInput {
pub client_token: Option<String>,
pub organization_id: Option<String>,
pub name: Option<String>,
pub type: Option<ImpersonationRoleType>,
pub description: Option<String>,
pub rules: Option<Vec<ImpersonationRule>>,
}
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.client_token: Option<String>
The idempotency token for the client request.
organization_id: Option<String>
The WorkMail organization to create the new impersonation role within.
name: Option<String>
The name of the new impersonation role.
type: Option<ImpersonationRoleType>
The impersonation role's type. The available impersonation role types are READ_ONLY
or FULL_ACCESS
.
description: Option<String>
The description of the new impersonation role.
rules: Option<Vec<ImpersonationRule>>
The list of rules for the impersonation role.
Implementations§
source§impl CreateImpersonationRoleInput
impl CreateImpersonationRoleInput
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
The idempotency token for the client request.
sourcepub fn organization_id(&self) -> Option<&str>
pub fn organization_id(&self) -> Option<&str>
The WorkMail organization to create the new impersonation role within.
sourcepub fn type(&self) -> Option<&ImpersonationRoleType>
pub fn type(&self) -> Option<&ImpersonationRoleType>
The impersonation role's type. The available impersonation role types are READ_ONLY
or FULL_ACCESS
.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the new impersonation role.
sourcepub fn rules(&self) -> &[ImpersonationRule]
pub fn rules(&self) -> &[ImpersonationRule]
The list of rules for the impersonation role.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .rules.is_none()
.
source§impl CreateImpersonationRoleInput
impl CreateImpersonationRoleInput
sourcepub fn builder() -> CreateImpersonationRoleInputBuilder
pub fn builder() -> CreateImpersonationRoleInputBuilder
Creates a new builder-style object to manufacture CreateImpersonationRoleInput
.
Trait Implementations§
source§impl Clone for CreateImpersonationRoleInput
impl Clone for CreateImpersonationRoleInput
source§fn clone(&self) -> CreateImpersonationRoleInput
fn clone(&self) -> CreateImpersonationRoleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateImpersonationRoleInput
impl Debug for CreateImpersonationRoleInput
source§impl PartialEq for CreateImpersonationRoleInput
impl PartialEq for CreateImpersonationRoleInput
source§fn eq(&self, other: &CreateImpersonationRoleInput) -> bool
fn eq(&self, other: &CreateImpersonationRoleInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateImpersonationRoleInput
Auto Trait Implementations§
impl Freeze for CreateImpersonationRoleInput
impl RefUnwindSafe for CreateImpersonationRoleInput
impl Send for CreateImpersonationRoleInput
impl Sync for CreateImpersonationRoleInput
impl Unpin for CreateImpersonationRoleInput
impl UnwindSafe for CreateImpersonationRoleInput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more