pub struct InvariantFailure {
pub code: &'static str,
pub destination: String,
pub reason: String,
pub remediation: &'static str,
}Expand description
One invariant a landed file’s effective configuration violates: a stable code, the destination, why, and exactly what to write — the operator is told the remediation, never just what was not found.
Fields§
§code: &'static strThe stable machine code of the failed rule.
destination: StringThe landed destination the failure is about.
reason: StringWhy the configuration violates the invariant.
remediation: &'static strExactly what to write to satisfy the rule.
Trait Implementations§
Source§impl Clone for InvariantFailure
impl Clone for InvariantFailure
Source§fn clone(&self) -> InvariantFailure
fn clone(&self) -> InvariantFailure
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 InvariantFailure
impl Debug for InvariantFailure
Auto Trait Implementations§
impl Freeze for InvariantFailure
impl RefUnwindSafe for InvariantFailure
impl Send for InvariantFailure
impl Sync for InvariantFailure
impl Unpin for InvariantFailure
impl UnsafeUnpin for InvariantFailure
impl UnwindSafe for InvariantFailure
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