pub(crate) struct ConfigWebOfTrustRoot {
fingerprint: OpenpgpFingerprint,
amount: Option<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: Option<TrustAmountRoot>The trust amount for the root.
Implementations§
Source§impl ConfigWebOfTrustRoot
impl ConfigWebOfTrustRoot
Sourcepub(crate) fn new(
fingerprint: OpenpgpFingerprint,
amount: Option<TrustAmountRoot>,
) -> Self
pub(crate) fn new( fingerprint: OpenpgpFingerprint, amount: Option<TrustAmountRoot>, ) -> Self
Creates a new ConfigWebOfTrustRoot.
Sourcepub fn fingerprint(&self) -> &OpenpgpFingerprint
pub fn fingerprint(&self) -> &OpenpgpFingerprint
Returns a reference to the OpenpgpFingerprint.
Sourcepub fn amount(&self) -> Option<TrustAmountRoot>
pub fn amount(&self) -> Option<TrustAmountRoot>
Returns a reference to the optional TrustAmountRoot.
Trait Implementations§
Source§impl Clone for ConfigWebOfTrustRoot
impl Clone for ConfigWebOfTrustRoot
Source§fn clone(&self) -> ConfigWebOfTrustRoot
fn clone(&self) -> ConfigWebOfTrustRoot
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 ConfigWebOfTrustRoot
impl Debug for ConfigWebOfTrustRoot
Source§impl<'de> Deserialize<'de> for ConfigWebOfTrustRoot
impl<'de> Deserialize<'de> for ConfigWebOfTrustRoot
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 ConfigWebOfTrustRoot
impl Hash for ConfigWebOfTrustRoot
Source§impl Ord for ConfigWebOfTrustRoot
impl Ord for ConfigWebOfTrustRoot
Source§fn cmp(&self, other: &ConfigWebOfTrustRoot) -> Ordering
fn cmp(&self, other: &ConfigWebOfTrustRoot) -> 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 ConfigWebOfTrustRoot
impl PartialEq for ConfigWebOfTrustRoot
Source§impl PartialOrd for ConfigWebOfTrustRoot
impl PartialOrd for ConfigWebOfTrustRoot
Source§impl Serialize for ConfigWebOfTrustRoot
impl Serialize for ConfigWebOfTrustRoot
impl Eq for ConfigWebOfTrustRoot
impl StructuralPartialEq for ConfigWebOfTrustRoot
Auto Trait Implementations§
impl Freeze for ConfigWebOfTrustRoot
impl RefUnwindSafe for ConfigWebOfTrustRoot
impl Send for ConfigWebOfTrustRoot
impl Sync for ConfigWebOfTrustRoot
impl Unpin for ConfigWebOfTrustRoot
impl UnwindSafe for ConfigWebOfTrustRoot
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