#[non_exhaustive]pub struct PutAccessControlRuleInput {
pub name: Option<String>,
pub effect: Option<AccessControlRuleEffect>,
pub description: Option<String>,
pub ip_ranges: Option<Vec<String>>,
pub not_ip_ranges: Option<Vec<String>>,
pub actions: Option<Vec<String>>,
pub not_actions: Option<Vec<String>>,
pub user_ids: Option<Vec<String>>,
pub not_user_ids: Option<Vec<String>>,
pub organization_id: Option<String>,
pub impersonation_role_ids: Option<Vec<String>>,
pub not_impersonation_role_ids: Option<Vec<String>>,
}
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.name: Option<String>
The rule name.
effect: Option<AccessControlRuleEffect>
The rule effect.
description: Option<String>
The rule description.
ip_ranges: Option<Vec<String>>
IPv4 CIDR ranges to include in the rule.
not_ip_ranges: Option<Vec<String>>
IPv4 CIDR ranges to exclude from the rule.
actions: Option<Vec<String>>
Access protocol actions to include in the rule. Valid values include ActiveSync
, AutoDiscover
, EWS
, IMAP
, SMTP
, WindowsOutlook
, and WebMail
.
not_actions: Option<Vec<String>>
Access protocol actions to exclude from the rule. Valid values include ActiveSync
, AutoDiscover
, EWS
, IMAP
, SMTP
, WindowsOutlook
, and WebMail
.
user_ids: Option<Vec<String>>
User IDs to include in the rule.
not_user_ids: Option<Vec<String>>
User IDs to exclude from the rule.
organization_id: Option<String>
The identifier of the organization.
impersonation_role_ids: Option<Vec<String>>
Impersonation role IDs to include in the rule.
not_impersonation_role_ids: Option<Vec<String>>
Impersonation role IDs to exclude from the rule.
Implementations§
source§impl PutAccessControlRuleInput
impl PutAccessControlRuleInput
sourcepub fn effect(&self) -> Option<&AccessControlRuleEffect>
pub fn effect(&self) -> Option<&AccessControlRuleEffect>
The rule effect.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The rule description.
sourcepub fn not_ip_ranges(&self) -> Option<&[String]>
pub fn not_ip_ranges(&self) -> Option<&[String]>
IPv4 CIDR ranges to exclude from the rule.
sourcepub fn actions(&self) -> Option<&[String]>
pub fn actions(&self) -> Option<&[String]>
Access protocol actions to include in the rule. Valid values include ActiveSync
, AutoDiscover
, EWS
, IMAP
, SMTP
, WindowsOutlook
, and WebMail
.
sourcepub fn not_actions(&self) -> Option<&[String]>
pub fn not_actions(&self) -> Option<&[String]>
Access protocol actions to exclude from the rule. Valid values include ActiveSync
, AutoDiscover
, EWS
, IMAP
, SMTP
, WindowsOutlook
, and WebMail
.
sourcepub fn not_user_ids(&self) -> Option<&[String]>
pub fn not_user_ids(&self) -> Option<&[String]>
User IDs to exclude from the rule.
sourcepub fn organization_id(&self) -> Option<&str>
pub fn organization_id(&self) -> Option<&str>
The identifier of the organization.
sourcepub fn impersonation_role_ids(&self) -> Option<&[String]>
pub fn impersonation_role_ids(&self) -> Option<&[String]>
Impersonation role IDs to include in the rule.
sourcepub fn not_impersonation_role_ids(&self) -> Option<&[String]>
pub fn not_impersonation_role_ids(&self) -> Option<&[String]>
Impersonation role IDs to exclude from the rule.
source§impl PutAccessControlRuleInput
impl PutAccessControlRuleInput
sourcepub fn builder() -> PutAccessControlRuleInputBuilder
pub fn builder() -> PutAccessControlRuleInputBuilder
Creates a new builder-style object to manufacture PutAccessControlRuleInput
.
Trait Implementations§
source§impl Clone for PutAccessControlRuleInput
impl Clone for PutAccessControlRuleInput
source§fn clone(&self) -> PutAccessControlRuleInput
fn clone(&self) -> PutAccessControlRuleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutAccessControlRuleInput
impl Debug for PutAccessControlRuleInput
source§impl PartialEq<PutAccessControlRuleInput> for PutAccessControlRuleInput
impl PartialEq<PutAccessControlRuleInput> for PutAccessControlRuleInput
source§fn eq(&self, other: &PutAccessControlRuleInput) -> bool
fn eq(&self, other: &PutAccessControlRuleInput) -> bool
self
and other
values to be equal, and is used
by ==
.