pub enum VetoType {
MissingData {
data: DataPath,
suggestion: Option<String>,
},
MissingRowData {
key: String,
},
UserDefined {
message: Option<String>,
},
Computation {
message: String,
},
}Expand description
Why an operation yielded no value (domain veto).
JSON serialization is a single string (see fmt::Display). There is intentionally no
Deserialize implementation: veto payloads are engine output only.
Variants§
MissingData
Evaluation needed a data that was not provided
MissingRowData
Evaluation needed a field of a list row that was not provided
(key is the row path, e.g. menu.2.price).
UserDefined
Explicit veto "reason" in Lemma source
Computation
Runtime domain failure (division by zero, date overflow, bad Data override, etc.)
Implementations§
Trait Implementations§
impl Eq for VetoType
impl StructuralPartialEq for VetoType
Auto Trait Implementations§
impl Freeze for VetoType
impl RefUnwindSafe for VetoType
impl Send for VetoType
impl Sync for VetoType
impl Unpin for VetoType
impl UnsafeUnpin for VetoType
impl UnwindSafe for VetoType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.