pub struct ApplicationPolicy {
pub install_type: Option<String>,
pub managed_configuration: Option<HashMap<String, String>>,
pub lock_task_allowed: Option<bool>,
pub package_name: Option<String>,
pub permission_grants: Option<Vec<PermissionGrant>>,
pub default_permission_policy: Option<String>,
}Expand description
Policy for an individual app.
This type is not used in any activity, and only used as part of another schema.
Fields§
§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 |
lock_task_allowed: Option<bool>Whether the application is allowed to lock itself in full-screen mode.
package_name: Option<String>The package name of the app, e.g. 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.
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.
Trait Implementations§
source§impl Clone for ApplicationPolicy
impl Clone for ApplicationPolicy
source§fn clone(&self) -> ApplicationPolicy
fn clone(&self) -> ApplicationPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ApplicationPolicy
impl Debug for ApplicationPolicy
source§impl Default for ApplicationPolicy
impl Default for ApplicationPolicy
source§fn default() -> ApplicationPolicy
fn default() -> ApplicationPolicy
source§impl<'de> Deserialize<'de> for ApplicationPolicy
impl<'de> Deserialize<'de> for ApplicationPolicy
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for ApplicationPolicy
impl Serialize for ApplicationPolicy
impl Part for ApplicationPolicy
Auto Trait Implementations§
impl Freeze for ApplicationPolicy
impl RefUnwindSafe for ApplicationPolicy
impl Send for ApplicationPolicy
impl Sync for ApplicationPolicy
impl Unpin for ApplicationPolicy
impl UnwindSafe for ApplicationPolicy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more