pub struct NonComplianceDetail {
pub current_value: Option<Value>,
pub field_path: Option<String>,
pub installation_failure_reason: Option<String>,
pub non_compliance_reason: Option<String>,
pub package_name: Option<String>,
pub setting_name: Option<String>,
pub specific_non_compliance_context: Option<SpecificNonComplianceContext>,
pub specific_non_compliance_reason: Option<String>,
}
Expand description
Provides detail about non-compliance with a policy setting.
This type is not used in any activity, and only used as part of another schema.
Fields§
§current_value: Option<Value>
If the policy setting could not be applied, the current value of the setting on the device.
field_path: Option<String>
For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path would be applications[2].externalData.url
installation_failure_reason: Option<String>
If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can’t be installed or updated.
non_compliance_reason: Option<String>
The reason the device is not in compliance with the setting.
package_name: Option<String>
The package name indicating which app is out of compliance, if applicable.
setting_name: Option<String>
The name of the policy setting. This is the JSON field name of a top-level Policy field.
specific_non_compliance_context: Option<SpecificNonComplianceContext>
Additional context for specific_non_compliance_reason.
specific_non_compliance_reason: Option<String>
The policy-specific reason the device is not in compliance with the setting.
Trait Implementations§
Source§impl Clone for NonComplianceDetail
impl Clone for NonComplianceDetail
Source§fn clone(&self) -> NonComplianceDetail
fn clone(&self) -> NonComplianceDetail
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NonComplianceDetail
impl Debug for NonComplianceDetail
Source§impl Default for NonComplianceDetail
impl Default for NonComplianceDetail
Source§fn default() -> NonComplianceDetail
fn default() -> NonComplianceDetail
Source§impl<'de> Deserialize<'de> for NonComplianceDetail
impl<'de> Deserialize<'de> for NonComplianceDetail
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 NonComplianceDetail
impl Serialize for NonComplianceDetail
impl Part for NonComplianceDetail
Auto Trait Implementations§
impl Freeze for NonComplianceDetail
impl RefUnwindSafe for NonComplianceDetail
impl Send for NonComplianceDetail
impl Sync for NonComplianceDetail
impl Unpin for NonComplianceDetail
impl UnwindSafe for NonComplianceDetail
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