[][src]Struct google_androidenterprise1::Policy

pub struct Policy {
    pub auto_update_policy: Option<String>,
    pub device_report_policy: Option<String>,
    pub maintenance_window: Option<MaintenanceWindow>,
    pub product_policy: Option<Vec<ProductPolicy>>,
    pub product_availability_policy: Option<String>,
}

The device policy for a given managed device.

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

Fields

auto_update_policy: Option<String>

The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi.

device_report_policy: Option<String>

Whether the device reports app states to the EMM. The default value is "deviceReportDisabled".

maintenance_window: Option<MaintenanceWindow>

The maintenance window defining when apps running in the foreground should be updated.

product_policy: Option<Vec<ProductPolicy>>

The list of product policies.

product_availability_policy: Option<String>

The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.

Trait Implementations

impl Clone for Policy[src]

impl Debug for Policy[src]

impl Default for Policy[src]

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

impl Part for Policy[src]

impl Serialize for Policy[src]

Auto Trait Implementations

impl RefUnwindSafe for Policy

impl Send for Policy

impl Sync for Policy

impl Unpin for Policy

impl UnwindSafe for Policy

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