pub struct WebOfTrustRoot {
fingerprint: OpenpgpFingerprint,
amount: TrustAmountRoot,
}Expand description
A root for the “Web of Trust”.
Fields§
§fingerprint: OpenpgpFingerprintThe fingerprint of the trust anchor that acts as “Web of Trust” root.
amount: TrustAmountRootThe trust amount for the root.
Implementations§
Source§impl WebOfTrustRoot
impl WebOfTrustRoot
Sourcepub fn new(fingerprint: OpenpgpFingerprint, amount: TrustAmountRoot) -> Self
pub fn new(fingerprint: OpenpgpFingerprint, amount: TrustAmountRoot) -> Self
Creates a new WebOfTrustRoot.
Takes a OpenpgpFingerprint, which defines the OpenPGP fingerprint of the root and a
TrustAmountRoot which sets the trust amount for the root.
Sourcepub fn fingerprint(&self) -> &OpenpgpFingerprint
pub fn fingerprint(&self) -> &OpenpgpFingerprint
Returns a reference to the OpenpgpFingerprint.
Sourcepub fn amount(&self) -> TrustAmountRoot
pub fn amount(&self) -> TrustAmountRoot
Returns a reference to the TrustAmountRoot.
Trait Implementations§
Source§impl Clone for WebOfTrustRoot
impl Clone for WebOfTrustRoot
Source§fn clone(&self) -> WebOfTrustRoot
fn clone(&self) -> WebOfTrustRoot
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 WebOfTrustRoot
impl Debug for WebOfTrustRoot
Source§impl<'de> Deserialize<'de> for WebOfTrustRoot
impl<'de> Deserialize<'de> for WebOfTrustRoot
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 Hash for WebOfTrustRoot
impl Hash for WebOfTrustRoot
Source§impl Ord for WebOfTrustRoot
impl Ord for WebOfTrustRoot
Source§fn cmp(&self, other: &WebOfTrustRoot) -> Ordering
fn cmp(&self, other: &WebOfTrustRoot) -> 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 WebOfTrustRoot
impl PartialEq for WebOfTrustRoot
Source§impl PartialOrd for WebOfTrustRoot
impl PartialOrd for WebOfTrustRoot
Source§impl Serialize for WebOfTrustRoot
impl Serialize for WebOfTrustRoot
impl Eq for WebOfTrustRoot
impl StructuralPartialEq for WebOfTrustRoot
Auto Trait Implementations§
impl Freeze for WebOfTrustRoot
impl RefUnwindSafe for WebOfTrustRoot
impl Send for WebOfTrustRoot
impl Sync for WebOfTrustRoot
impl Unpin for WebOfTrustRoot
impl UnwindSafe for WebOfTrustRoot
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