pub struct CrossProfilePolicies {
pub cross_profile_copy_paste: Option<String>,
pub cross_profile_data_sharing: Option<String>,
pub exemptions_to_show_work_contacts_in_personal_profile: Option<PackageNameList>,
pub show_work_contacts_in_personal_profile: Option<String>,
pub work_profile_widgets_default: Option<String>,
}
Expand description
Controls the data from the work profile that can be accessed from the personal profile and vice versa. A nonComplianceDetail with MANAGEMENT_MODE is reported if the device does not have a work profile.
This type is not used in any activity, and only used as part of another schema.
Fields§
§cross_profile_copy_paste: Option<String>
Whether text copied from one profile (personal or work) can be pasted in the other profile.
cross_profile_data_sharing: Option<String>
Whether data from one profile (personal or work) can be shared with apps in the other profile. Specifically controls simple data sharing via intents. Management of other cross-profile communication channels, such as contact search, copy/paste, or connected work & personal apps, are configured separately.
exemptions_to_show_work_contacts_in_personal_profile: Option<PackageNameList>
List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting. For this to be set, ShowWorkContactsInPersonalProfile must be set to one of the following values: SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a blocklist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED. In this case, these exemptions act as an allowlist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM. In this case, these exemptions act as an allowlist, in addition to the already allowlisted system apps.Supported on Android 14 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 14.
show_work_contacts_in_personal_profile: Option<String>
Whether personal apps can access contacts stored in the work profile.See also exemptions_to_show_work_contacts_in_personal_profile.
work_profile_widgets_default: Option<String>
Specifies the default behaviour for work profile widgets. If the policy does not specify work_profile_widgets for a specific application, it will behave according to the value specified here.
Trait Implementations§
Source§impl Clone for CrossProfilePolicies
impl Clone for CrossProfilePolicies
Source§fn clone(&self) -> CrossProfilePolicies
fn clone(&self) -> CrossProfilePolicies
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CrossProfilePolicies
impl Debug for CrossProfilePolicies
Source§impl Default for CrossProfilePolicies
impl Default for CrossProfilePolicies
Source§fn default() -> CrossProfilePolicies
fn default() -> CrossProfilePolicies
Source§impl<'de> Deserialize<'de> for CrossProfilePolicies
impl<'de> Deserialize<'de> for CrossProfilePolicies
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 CrossProfilePolicies
impl Serialize for CrossProfilePolicies
impl Part for CrossProfilePolicies
Auto Trait Implementations§
impl Freeze for CrossProfilePolicies
impl RefUnwindSafe for CrossProfilePolicies
impl Send for CrossProfilePolicies
impl Sync for CrossProfilePolicies
impl Unpin for CrossProfilePolicies
impl UnwindSafe for CrossProfilePolicies
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