pub struct ComplianceRule {
pub api_level_condition: Option<ApiLevelCondition>,
pub disable_apps: Option<bool>,
pub non_compliance_detail_condition: Option<NonComplianceDetailCondition>,
pub package_names_to_disable: Option<Vec<String>>,
}
Expand description
A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule.
This type is not used in any activity, and only used as part of another schema.
Fields§
§api_level_condition: Option<ApiLevelCondition>
A condition which is satisfied if the Android Framework API level on the device doesn’t meet a minimum requirement.
disable_apps: Option<bool>
If set to true, the rule includes a mitigating action to disable apps so that the device is effectively disabled, but app data is preserved. If the device is running an app in locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed.
non_compliance_detail_condition: Option<NonComplianceDetailCondition>
A condition which is satisfied if there exists any matching NonComplianceDetail for the device.
package_names_to_disable: Option<Vec<String>>
If set, the rule includes a mitigating action to disable apps specified in the list, but app data is preserved.
Trait Implementations§
Source§impl Clone for ComplianceRule
impl Clone for ComplianceRule
Source§fn clone(&self) -> ComplianceRule
fn clone(&self) -> ComplianceRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ComplianceRule
impl Debug for ComplianceRule
Source§impl Default for ComplianceRule
impl Default for ComplianceRule
Source§fn default() -> ComplianceRule
fn default() -> ComplianceRule
Source§impl<'de> Deserialize<'de> for ComplianceRule
impl<'de> Deserialize<'de> for ComplianceRule
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 ComplianceRule
impl Serialize for ComplianceRule
impl Part for ComplianceRule
Auto Trait Implementations§
impl Freeze for ComplianceRule
impl RefUnwindSafe for ComplianceRule
impl Send for ComplianceRule
impl Sync for ComplianceRule
impl Unpin for ComplianceRule
impl UnwindSafe for ComplianceRule
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