pub struct ApplicationPolicy {
Show 14 fields pub accessible_track_ids: Option<Vec<String>>, pub auto_update_mode: Option<String>, pub connected_work_and_personal_app: Option<String>, pub default_permission_policy: Option<String>, pub delegated_scopes: Option<Vec<String>>, pub disabled: Option<bool>, pub extension_config: Option<ExtensionConfig>, pub install_type: Option<String>, pub lock_task_allowed: Option<bool>, pub managed_configuration: Option<HashMap<String, String>>, pub managed_configuration_template: Option<ManagedConfigurationTemplate>, pub minimum_version_code: Option<i32>, pub package_name: Option<String>, pub permission_grants: Option<Vec<PermissionGrant>>,
}
Expand description

Policy for an individual app.

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

Fields

accessible_track_ids: Option<Vec<String>>

List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo.

auto_update_mode: Option<String>

Controls the auto-update mode for the app.

connected_work_and_personal_app: Option<String>

Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent.

default_permission_policy: Option<String>

The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps.

delegated_scopes: Option<Vec<String>>

The scopes delegated to the app from Android Device Policy.

disabled: Option<bool>

Whether the app is disabled. When disabled, the app data is still preserved.

extension_config: Option<ExtensionConfig>

Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app.

install_type: Option<String>

The type of installation to perform.

lock_task_allowed: Option<bool>

Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to to configure a dedicated device.

managed_configuration: Option<HashMap<String, String>>

Managed configuration applied to the app. The format for the configuration is dictated by the ManagedProperty values supported by the app. Each field name in the managed configuration must match the key field of the ManagedProperty. The field value must be compatible with the type of the ManagedProperty: type JSON value BOOL true or false STRING string INTEGER number CHOICE string MULTISELECT array of strings HIDDEN string BUNDLE_ARRAY array of objects

managed_configuration_template: Option<ManagedConfigurationTemplate>

The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set.

minimum_version_code: Option<i32>

The minimum version of the app that runs on the device. If set, the device attempts to update the app to at least this version code. If the app is not up-to-date, the device will contain a NonComplianceDetail with non_compliance_reason set to APP_NOT_UPDATED. The app must already be published to Google Play with a version code greater than or equal to this value. At most 20 apps may specify a minimum version code per policy.

package_name: Option<String>

The package name of the app. For example, com.google.android.youtube for the YouTube app.

permission_grants: Option<Vec<PermissionGrant>>

Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more