#[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 ==
.