pub struct PersonalUsagePolicies {
pub account_types_with_management_disabled: Option<Vec<String>>,
pub camera_disabled: Option<bool>,
pub max_days_with_work_off: Option<i32>,
pub personal_applications: Option<Vec<PersonalApplicationPolicy>>,
pub personal_play_store_mode: Option<String>,
pub screen_capture_disabled: Option<bool>,
}
Expand description
Policies controlling personal usage on a company-owned device with a work profile.
This type is not used in any activity, and only used as part of another schema.
Fields§
§account_types_with_management_disabled: Option<Vec<String>>
Account types that can’t be managed by the user.
camera_disabled: Option<bool>
If true, the camera is disabled on the personal profile.
max_days_with_work_off: Option<i32>
Controls how long the work profile can stay off. The minimum duration must be at least 3 days. Other details are as follows: - If the duration is set to 0, the feature is turned off. - If the duration is set to a value smaller than the minimum duration, the feature returns an error. Note: If you want to avoid personal profiles being suspended during long periods of off-time, you can temporarily set a large value for this parameter.
personal_applications: Option<Vec<PersonalApplicationPolicy>>
Policy applied to applications in the personal profile.
personal_play_store_mode: Option<String>
Used together with personalApplications to control how apps in the personal profile are allowed or blocked.
screen_capture_disabled: Option<bool>
If true, screen capture is disabled for all users.
Trait Implementations§
Source§impl Clone for PersonalUsagePolicies
impl Clone for PersonalUsagePolicies
Source§fn clone(&self) -> PersonalUsagePolicies
fn clone(&self) -> PersonalUsagePolicies
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PersonalUsagePolicies
impl Debug for PersonalUsagePolicies
Source§impl Default for PersonalUsagePolicies
impl Default for PersonalUsagePolicies
Source§fn default() -> PersonalUsagePolicies
fn default() -> PersonalUsagePolicies
Source§impl<'de> Deserialize<'de> for PersonalUsagePolicies
impl<'de> Deserialize<'de> for PersonalUsagePolicies
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 PersonalUsagePolicies
impl Serialize for PersonalUsagePolicies
impl Part for PersonalUsagePolicies
Auto Trait Implementations§
impl Freeze for PersonalUsagePolicies
impl RefUnwindSafe for PersonalUsagePolicies
impl Send for PersonalUsagePolicies
impl Sync for PersonalUsagePolicies
impl Unpin for PersonalUsagePolicies
impl UnwindSafe for PersonalUsagePolicies
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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