[][src]Struct google_androidmanagement1::PolicyEnforcementRule

pub struct PolicyEnforcementRule {
    pub wipe_action: Option<WipeAction>,
    pub block_action: Option<BlockAction>,
    pub setting_name: Option<String>,
}

A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName.

This type is not used in any activity, and only used as part of another schema.

Fields

wipe_action: Option<WipeAction>

An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified.

block_action: Option<BlockAction>

An action to block access to apps and data on a fully managed 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.

Trait Implementations

impl Clone for PolicyEnforcementRule[src]

impl Debug for PolicyEnforcementRule[src]

impl Default for PolicyEnforcementRule[src]

impl<'de> Deserialize<'de> for PolicyEnforcementRule[src]

impl Part for PolicyEnforcementRule[src]

impl Serialize for PolicyEnforcementRule[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any