pub struct PolicyViolation {
pub rule: String,
pub message: String,
}Expand description
A single rule violation produced by validate_spec_against_policy.
Fields§
§rule: StringThe camelCase rule name that was violated (e.g. "maxLifetimeTtlSeconds").
message: StringHuman-readable description of the violation.
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 (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 PolicyViolation
impl Debug for PolicyViolation
Source§impl Display for PolicyViolation
impl Display for PolicyViolation
Source§impl PartialEq for PolicyViolation
impl PartialEq for PolicyViolation
Source§fn eq(&self, other: &PolicyViolation) -> bool
fn eq(&self, other: &PolicyViolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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 UnsafeUnpin 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