#[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
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.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) -> Option<&[ImpersonationRule]>
pub fn rules(&self) -> Option<&[ImpersonationRule]>
The list of rules for the impersonation role.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreateImpersonationRoleInput
impl Debug for CreateImpersonationRoleInput
source§impl PartialEq<CreateImpersonationRoleInput> for CreateImpersonationRoleInput
impl PartialEq<CreateImpersonationRoleInput> for CreateImpersonationRoleInput
source§fn eq(&self, other: &CreateImpersonationRoleInput) -> bool
fn eq(&self, other: &CreateImpersonationRoleInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateImpersonationRoleInput
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more