[−][src]Struct google_androidmanagement1::ComplianceRule
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.
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.
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 Clone for ComplianceRule
[src]
fn clone(&self) -> ComplianceRule
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ComplianceRule
[src]
impl Default for ComplianceRule
[src]
fn default() -> ComplianceRule
[src]
impl<'de> Deserialize<'de> for ComplianceRule
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for ComplianceRule
[src]
impl Serialize for ComplianceRule
[src]
Auto Trait Implementations
impl RefUnwindSafe for ComplianceRule
impl Send for ComplianceRule
impl Sync for ComplianceRule
impl Unpin for ComplianceRule
impl UnwindSafe for ComplianceRule
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,