#[non_exhaustive]pub enum TrustLabel {
Primary,
Computed,
Verified,
Unverified,
}Expand description
The four trust labels of SPEC 5.5 (spec-0.4.2), computed included.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Primary
The publisher answered from its own records.
Computed
Not primary; the mesh asked evaluated the cell and signed the receipt itself.
Verified
Not primary, signed by another host, and the mesh recomputed it.
Unverified
Not primary, signed by another host, not recomputed.
Implementations§
Trait Implementations§
Source§impl Clone for TrustLabel
impl Clone for TrustLabel
impl Copy for TrustLabel
Source§impl Debug for TrustLabel
impl Debug for TrustLabel
impl Eq for TrustLabel
Source§impl Hash for TrustLabel
impl Hash for TrustLabel
Source§impl Ord for TrustLabel
impl Ord for TrustLabel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TrustLabel
impl PartialEq for TrustLabel
Source§impl PartialOrd for TrustLabel
impl PartialOrd for TrustLabel
impl StructuralPartialEq for TrustLabel
Auto Trait Implementations§
impl Freeze for TrustLabel
impl RefUnwindSafe for TrustLabel
impl Send for TrustLabel
impl Sync for TrustLabel
impl Unpin for TrustLabel
impl UnsafeUnpin for TrustLabel
impl UnwindSafe for TrustLabel
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