Enum crev_data::proof::trust::TrustLevel
source · pub enum TrustLevel {
Distrust,
None,
Low,
Medium,
High,
}
Variants§
Trait Implementations§
source§impl Clone for TrustLevel
impl Clone for TrustLevel
source§fn clone(&self) -> TrustLevel
fn clone(&self) -> TrustLevel
Returns a copy of the value. Read more
1.0.0 · 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 TrustLevel
impl Debug for TrustLevel
source§impl Default for TrustLevel
impl Default for TrustLevel
source§fn default() -> TrustLevel
fn default() -> TrustLevel
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TrustLevel
impl<'de> Deserialize<'de> for TrustLevel
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 Display for TrustLevel
impl Display for TrustLevel
source§impl From<Level> for TrustLevel
impl From<Level> for TrustLevel
source§impl FromStr for TrustLevel
impl FromStr for TrustLevel
§type Err = FromStrErr
type Err = FromStrErr
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<TrustLevel, FromStrErr>
fn from_str(s: &str) -> Result<TrustLevel, FromStrErr>
Parses a string
s
to return a value of this type. Read moresource§impl Ord for TrustLevel
impl Ord for TrustLevel
source§fn cmp(&self, other: &TrustLevel) -> Ordering
fn cmp(&self, other: &TrustLevel) -> Ordering
1.21.0 · 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
source§impl PartialEq for TrustLevel
impl PartialEq for TrustLevel
source§fn eq(&self, other: &TrustLevel) -> bool
fn eq(&self, other: &TrustLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TrustLevel
impl PartialOrd for TrustLevel
source§fn partial_cmp(&self, other: &TrustLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &TrustLevel) -> Option<Ordering>
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 moresource§impl Serialize for TrustLevel
impl Serialize for TrustLevel
impl Copy for TrustLevel
impl Eq for TrustLevel
impl StructuralPartialEq for TrustLevel
Auto Trait Implementations§
impl Freeze for TrustLevel
impl RefUnwindSafe for TrustLevel
impl Send for TrustLevel
impl Sync for TrustLevel
impl Unpin for TrustLevel
impl UnwindSafe for TrustLevel
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.