[][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 Part for PolicyEnforcementRule[src]

impl Default for PolicyEnforcementRule[src]

impl Clone for PolicyEnforcementRule[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for PolicyEnforcementRule[src]

impl Serialize for PolicyEnforcementRule[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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