pub enum TrustLevel {
Undefined = 0,
Never = 1,
Marginal = 2,
Fully = 3,
Ultimate = 4,
}Expand description
Signature trust level, mirroring Git’s enum signature_trust_level.
The numeric ordering matters: gpg.minTrustLevel comparisons use it.
Variants§
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
Source§fn clone(&self) -> TrustLevel
fn clone(&self) -> TrustLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrustLevel
Source§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
impl Eq for TrustLevel
Source§impl Ord for TrustLevel
impl Ord for TrustLevel
Source§fn cmp(&self, other: &TrustLevel) -> Ordering
fn cmp(&self, other: &TrustLevel) -> Ordering
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
Source§impl PartialEq for TrustLevel
impl PartialEq for TrustLevel
Source§fn eq(&self, other: &TrustLevel) -> bool
fn eq(&self, other: &TrustLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.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