#[non_exhaustive]pub struct PutMailboxPermissionsInput {
pub organization_id: Option<String>,
pub entity_id: Option<String>,
pub grantee_id: Option<String>,
pub permission_values: Option<Vec<PermissionType>>,
}
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.organization_id: Option<String>
The identifier of the organization under which the user, group, or resource exists.
entity_id: Option<String>
The identifier of the user or resource for which to update mailbox permissions.
The identifier can be UserId, ResourceID, or Group Id, Username, Resourcename, or Groupname, or email.
-
Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234
-
Email address: entity@domain.tld
-
Entity name: entity
grantee_id: Option<String>
The identifier of the user, group, or resource to which to grant the permissions.
The identifier can be UserId, ResourceID, or Group Id, Username, Resourcename, or Groupname, or email.
-
Grantee ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234
-
Email address: grantee@domain.tld
-
Grantee name: grantee
permission_values: Option<Vec<PermissionType>>
The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
Implementations§
source§impl PutMailboxPermissionsInput
impl PutMailboxPermissionsInput
sourcepub fn organization_id(&self) -> Option<&str>
pub fn organization_id(&self) -> Option<&str>
The identifier of the organization under which the user, group, or resource exists.
sourcepub fn entity_id(&self) -> Option<&str>
pub fn entity_id(&self) -> Option<&str>
The identifier of the user or resource for which to update mailbox permissions.
The identifier can be UserId, ResourceID, or Group Id, Username, Resourcename, or Groupname, or email.
-
Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234
-
Email address: entity@domain.tld
-
Entity name: entity
sourcepub fn grantee_id(&self) -> Option<&str>
pub fn grantee_id(&self) -> Option<&str>
The identifier of the user, group, or resource to which to grant the permissions.
The identifier can be UserId, ResourceID, or Group Id, Username, Resourcename, or Groupname, or email.
-
Grantee ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234
-
Email address: grantee@domain.tld
-
Grantee name: grantee
sourcepub fn permission_values(&self) -> &[PermissionType]
pub fn permission_values(&self) -> &[PermissionType]
The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .permission_values.is_none()
.
source§impl PutMailboxPermissionsInput
impl PutMailboxPermissionsInput
sourcepub fn builder() -> PutMailboxPermissionsInputBuilder
pub fn builder() -> PutMailboxPermissionsInputBuilder
Creates a new builder-style object to manufacture PutMailboxPermissionsInput
.
Trait Implementations§
source§impl Clone for PutMailboxPermissionsInput
impl Clone for PutMailboxPermissionsInput
source§fn clone(&self) -> PutMailboxPermissionsInput
fn clone(&self) -> PutMailboxPermissionsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutMailboxPermissionsInput
impl Debug for PutMailboxPermissionsInput
source§impl PartialEq for PutMailboxPermissionsInput
impl PartialEq for PutMailboxPermissionsInput
source§fn eq(&self, other: &PutMailboxPermissionsInput) -> bool
fn eq(&self, other: &PutMailboxPermissionsInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutMailboxPermissionsInput
Auto Trait Implementations§
impl Freeze for PutMailboxPermissionsInput
impl RefUnwindSafe for PutMailboxPermissionsInput
impl Send for PutMailboxPermissionsInput
impl Sync for PutMailboxPermissionsInput
impl Unpin for PutMailboxPermissionsInput
impl UnwindSafe for PutMailboxPermissionsInput
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