Struct google_androidmanagement1::ComplianceRule [−][src]
pub struct ComplianceRule { pub package_names_to_disable: Option<Vec<String>>, pub api_level_condition: Option<ApiLevelCondition>, pub non_compliance_detail_condition: Option<NonComplianceDetailCondition>, pub disable_apps: Option<bool>, }
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
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.
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.
non_compliance_detail_condition: Option<NonComplianceDetailCondition>
A condition which is satisfied if there exists any matching NonComplianceDetail for the device.
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.
Trait Implementations
impl Default for ComplianceRule
[src]
impl Default for ComplianceRule
fn default() -> ComplianceRule
[src]
fn default() -> ComplianceRule
Returns the "default value" for a type. Read more
impl Clone for ComplianceRule
[src]
impl Clone for ComplianceRule
fn clone(&self) -> ComplianceRule
[src]
fn clone(&self) -> ComplianceRule
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ComplianceRule
[src]
impl Debug for ComplianceRule
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for ComplianceRule
[src]
impl Part for ComplianceRule
Auto Trait Implementations
impl Send for ComplianceRule
impl Send for ComplianceRule
impl Sync for ComplianceRule
impl Sync for ComplianceRule