pub struct PolicyEnforcementRule {
pub block_action: Option<BlockAction>,
pub setting_name: Option<String>,
pub wipe_action: Option<WipeAction>,
}
Expand description
A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName. In the case of multiple matching or multiple triggered enforcement rules, a merge will occur with the most severe action being taken. However, all triggered rules are still kept track of: this includes initial trigger time and all associated non-compliance details. In the situation where the most severe enforcement rule is satisfied, the next most appropriate action is applied.
This type is not used in any activity, and only used as part of another schema.
Fields§
§block_action: Option<BlockAction>
An action to block access to apps and data on a company owned device or in a work profile. This action also triggers a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified.
setting_name: Option<String>
The top-level policy to enforce. For example, applications or passwordPolicies.
wipe_action: Option<WipeAction>
An action to reset a company owned device or delete a work profile. Note: blockAction must also be specified.
Trait Implementations§
Source§impl Clone for PolicyEnforcementRule
impl Clone for PolicyEnforcementRule
Source§fn clone(&self) -> PolicyEnforcementRule
fn clone(&self) -> PolicyEnforcementRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PolicyEnforcementRule
impl Debug for PolicyEnforcementRule
Source§impl Default for PolicyEnforcementRule
impl Default for PolicyEnforcementRule
Source§fn default() -> PolicyEnforcementRule
fn default() -> PolicyEnforcementRule
Source§impl<'de> Deserialize<'de> for PolicyEnforcementRule
impl<'de> Deserialize<'de> for PolicyEnforcementRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for PolicyEnforcementRule
impl Serialize for PolicyEnforcementRule
impl Part for PolicyEnforcementRule
Auto Trait Implementations§
impl Freeze for PolicyEnforcementRule
impl RefUnwindSafe for PolicyEnforcementRule
impl Send for PolicyEnforcementRule
impl Sync for PolicyEnforcementRule
impl Unpin for PolicyEnforcementRule
impl UnwindSafe for PolicyEnforcementRule
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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