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 duplicate 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
Source§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§impl PartialOrd for TrustLevel
impl PartialOrd for TrustLevel
Source§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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.