pub enum TrustLevel {
Undefined = 0,
Never = 1,
Marginal = 2,
Fully = 3,
Ultimate = 4,
}Expand description
Signature trust level, as reported for a verified signature.
The numeric ordering matters: gpg.minTrustLevel comparisons use it.
Variants§
Undefined = 0
Undefined = 0 variant.
Never = 1
Never = 1 variant.
Marginal = 2
Marginal = 2 variant.
Fully = 3
Fully = 3 variant.
Ultimate = 4
Ultimate = 4 variant.
Implementations§
Source§impl TrustLevel
impl TrustLevel
Sourcepub fn display_key(self) -> &'static str
pub fn display_key(self) -> &'static str
The %GT display string (undefined, never, …).
Sourcepub fn from_config(value: &str) -> Option<TrustLevel>
pub fn from_config(value: &str) -> Option<TrustLevel>
Parse a configured gpg.minTrustLevel value (case-insensitive).
Trait Implementations§
Source§impl Clone for TrustLevel
impl Clone for TrustLevel
impl Copy for TrustLevel
Source§impl Debug for TrustLevel
impl Debug for TrustLevel
Source§impl Default for TrustLevel
impl Default for TrustLevel
impl Eq for TrustLevel
Source§impl Ord for TrustLevel
impl Ord for TrustLevel
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 TrustLevel
impl PartialEq for TrustLevel
Source§impl PartialOrd for TrustLevel
impl PartialOrd 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 UnsafeUnpin 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§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.