pub struct SemanticAssertion {
pub label: String,
pub condition: AssertionCondition,
pub expected: Value,
}Expand description
A declarative assertion to evaluate against a runtime value (e.g. “equals”, “truthy”).
Fields§
§label: StringHuman-readable label describing what is being asserted.
condition: AssertionConditionCondition operator to evaluate.
expected: ValueExpected value to compare against (interpretation depends on condition).
Trait Implementations§
Source§impl Clone for SemanticAssertion
impl Clone for SemanticAssertion
Source§fn clone(&self) -> SemanticAssertion
fn clone(&self) -> SemanticAssertion
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 SemanticAssertion
impl Debug for SemanticAssertion
Source§impl<'de> Deserialize<'de> for SemanticAssertion
impl<'de> Deserialize<'de> for SemanticAssertion
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
Source§impl PartialEq for SemanticAssertion
impl PartialEq for SemanticAssertion
Source§fn eq(&self, other: &SemanticAssertion) -> bool
fn eq(&self, other: &SemanticAssertion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SemanticAssertion
impl Serialize for SemanticAssertion
impl Eq for SemanticAssertion
impl StructuralPartialEq for SemanticAssertion
Auto Trait Implementations§
impl Freeze for SemanticAssertion
impl RefUnwindSafe for SemanticAssertion
impl Send for SemanticAssertion
impl Sync for SemanticAssertion
impl Unpin for SemanticAssertion
impl UnsafeUnpin for SemanticAssertion
impl UnwindSafe for SemanticAssertion
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