pub struct PolicyValidation {
pub message: Option<String>,
pub data: Option<Vec<Value>>,
pub unknown: Unknown,
}Expand description
What validating a policy answers when something is wrong.
A pass is an empty body, so a caller that receives any of this has a
failure or a warning to read. data is left as Value because its
items differ per finding — a failed test carries errors, an
unsynced group carries warnings — and the description gives them no
properties at all.
Fields§
§message: Option<String>test(s) failed, warning(s) found, and the like.
data: Option<Vec<Value>>One entry per finding, in the control plane’s own shape.
unknown: UnknownEverything the description did not mention, kept so that a control plane ahead of this build still answers usefully.
Implementations§
Trait Implementations§
Source§impl Clone for PolicyValidation
impl Clone for PolicyValidation
Source§fn clone(&self) -> PolicyValidation
fn clone(&self) -> PolicyValidation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicyValidation
impl Debug for PolicyValidation
Source§impl<'de> Deserialize<'de> for PolicyValidation
impl<'de> Deserialize<'de> for PolicyValidation
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PolicyValidation
impl PartialEq for PolicyValidation
Source§impl Serialize for PolicyValidation
impl Serialize for PolicyValidation
impl StructuralPartialEq for PolicyValidation
Auto Trait Implementations§
impl Freeze for PolicyValidation
impl RefUnwindSafe for PolicyValidation
impl Send for PolicyValidation
impl Sync for PolicyValidation
impl Unpin for PolicyValidation
impl UnsafeUnpin for PolicyValidation
impl UnwindSafe for PolicyValidation
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
Mutably borrows from an owned value. Read more