Enum client_side_validation::Validity
source · #[repr(u8)]pub enum Validity {
Valid = 1,
SealIssues = 255,
Invalid = 0,
}
Expand description
Result of client-side validation operation
Variants§
Valid = 1
The data are valid both in terms of the internal consistency and in terms of commitments in the single-use-seals medium
SealIssues = 255
The data are internally consistent and valid, but there were (multiple) issues with resolving single-use-seals reported by the provided seal resolver. These issues are not failed single-use-seals, but rather errors accessing single-use-seals commitment medium about its status (networking issues, transaction present in mempool and not yet mined etc).
Invalid = 0
The data are internally inconsistent/invalid
Trait Implementations§
source§impl Ord for Validity
impl Ord for Validity
source§impl PartialEq for Validity
impl PartialEq for Validity
source§impl PartialOrd for Validity
impl PartialOrd for Validity
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Validity
impl Eq for Validity
impl StructuralEq for Validity
impl StructuralPartialEq for Validity
Auto Trait Implementations§
impl RefUnwindSafe for Validity
impl Send for Validity
impl Sync for Validity
impl Unpin for Validity
impl UnwindSafe for Validity
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.