pub struct InvariantSpec {
pub name: String,
pub record_type: String,
pub tolerance: ToleranceSpec,
pub confirms: Vec<String>,
}Expand description
One declared invariant (R2.1): a name, the type of its current-state record, its tolerance, and the routes that confirm it (R3.3).
Fields§
§name: StringInvariant name, unique within the loop.
record_type: StringDeclared type of the invariant’s current-state record (R7): the AWL type name the surface checked the record payload against. The engine is type-erased and carries the name as provenance, never as a schema.
tolerance: ToleranceSpecDeclared tolerance — never defaulted (R2.3).
confirms: Vec<String>Routes whose taking confirms this invariant (R3.3).
Trait Implementations§
Source§impl Clone for InvariantSpec
impl Clone for InvariantSpec
Source§fn clone(&self) -> InvariantSpec
fn clone(&self) -> InvariantSpec
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 InvariantSpec
impl Debug for InvariantSpec
Source§impl<'de> Deserialize<'de> for InvariantSpec
impl<'de> Deserialize<'de> for InvariantSpec
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 InvariantSpec
Source§impl PartialEq for InvariantSpec
impl PartialEq for InvariantSpec
Source§impl Serialize for InvariantSpec
impl Serialize for InvariantSpec
impl StructuralPartialEq for InvariantSpec
Auto Trait Implementations§
impl Freeze for InvariantSpec
impl RefUnwindSafe for InvariantSpec
impl Send for InvariantSpec
impl Sync for InvariantSpec
impl Unpin for InvariantSpec
impl UnsafeUnpin for InvariantSpec
impl UnwindSafe for InvariantSpec
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