pub struct Violation {
pub invariant: String,
pub message: String,
pub suggestion: Option<Box<Suggestion>>,
}Fields§
§invariant: String§message: String§suggestion: Option<Box<Suggestion>>Change that would let the refused one through, set by Governance only when it was
checked: the invariant’s Invariant::remedy passes every invariant, with the same actor.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Violation
impl<'de> Deserialize<'de> for Violation
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
impl Eq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Forget for Violation
impl Freeze for Violationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const Suggestion is !null: Freeze,
PhantomData<Suggestion>: Freeze,
impl Move for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnsafeUnpin for Violationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const Suggestion is !null: UnsafeUnpin,
PhantomData<Suggestion>: UnsafeUnpin,
impl UnwindSafe for Violation
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