#[non_exhaustive]pub struct PolicyViolation {
pub policy_violation_details: Vec<PolicyViolationDetails>,
/* private fields */
}
Expand description
Returned from an action if one or more policies were violated, and therefore the action was prevented. Contains information about what policies were violated and why.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.policy_violation_details: Vec<PolicyViolationDetails>
Policy violation details.
Implementations§
Source§impl PolicyViolation
impl PolicyViolation
pub fn new() -> Self
Sourcepub fn set_policy_violation_details<T, V>(self, v: T) -> Self
pub fn set_policy_violation_details<T, V>(self, v: T) -> Self
Sets the value of policy_violation_details.
Trait Implementations§
Source§impl Clone for PolicyViolation
impl Clone for PolicyViolation
Source§fn clone(&self) -> PolicyViolation
fn clone(&self) -> PolicyViolation
Returns a duplicate of the value. Read more
1.0.0 · 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 PolicyViolation
impl Debug for PolicyViolation
Source§impl Default for PolicyViolation
impl Default for PolicyViolation
Source§fn default() -> PolicyViolation
fn default() -> PolicyViolation
Returns the “default value” for a type. Read more
Source§impl Message for PolicyViolation
impl Message for PolicyViolation
Source§impl PartialEq for PolicyViolation
impl PartialEq for PolicyViolation
impl StructuralPartialEq for PolicyViolation
Auto Trait Implementations§
impl Freeze for PolicyViolation
impl RefUnwindSafe for PolicyViolation
impl Send for PolicyViolation
impl Sync for PolicyViolation
impl Unpin for PolicyViolation
impl UnwindSafe for PolicyViolation
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