pub struct Invariant {
pub id: String,
pub description: String,
pub severity: Severity,
pub test_tags: Vec<String>,
}Expand description
An invariant that must always hold.
Fields§
§id: StringUnique identifier within the contract.
description: String§severity: SeverityTags for linking to conformance tests.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invariant
impl<'de> Deserialize<'de> for Invariant
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
Auto Trait Implementations§
impl Freeze for Invariant
impl RefUnwindSafe for Invariant
impl Send for Invariant
impl Sync for Invariant
impl Unpin for Invariant
impl UnsafeUnpin for Invariant
impl UnwindSafe for Invariant
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