Struct google_androidmanagement1::ApplicationPolicy [−][src]
pub struct ApplicationPolicy { pub lock_task_allowed: Option<bool>, pub package_name: Option<String>, pub disabled: Option<bool>, pub install_type: Option<String>, pub managed_configuration: Option<HashMap<String, String>>, pub minimum_version_code: Option<i32>, pub delegated_scopes: Option<Vec<String>>, pub permission_grants: Option<Vec<PermissionGrant>>, pub default_permission_policy: Option<String>, }
Policy for an individual app.
This type is not used in any activity, and only used as part of another schema.
Fields
lock_task_allowed: Option<bool>
Whether the app is allowed to lock itself in full-screen mode.
package_name: Option<String>
The package name of the app. For example, com.google.android.youtube for the YouTube app.
disabled: Option<bool>
Whether the app is disabled. When disabled, the app data is still preserved.
install_type: Option<String>
The type of installation to perform.
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 |
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.
delegated_scopes: Option<Vec<String>>
The scopes delegated to the app from Android Device Policy.
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.
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.
Trait Implementations
impl Default for ApplicationPolicy
[src]
impl Default for ApplicationPolicy
fn default() -> ApplicationPolicy
[src]
fn default() -> ApplicationPolicy
Returns the "default value" for a type. Read more
impl Clone for ApplicationPolicy
[src]
impl Clone for ApplicationPolicy
fn clone(&self) -> ApplicationPolicy
[src]
fn clone(&self) -> ApplicationPolicy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ApplicationPolicy
[src]
impl Debug for ApplicationPolicy
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for ApplicationPolicy
[src]
impl Part for ApplicationPolicy
Auto Trait Implementations
impl Send for ApplicationPolicy
impl Send for ApplicationPolicy
impl Sync for ApplicationPolicy
impl Sync for ApplicationPolicy