pub struct PlainMode {
identity_domain_matches: HashSet<DomainName>,
fingerprint_matches: HashSet<OpenpgpFingerprint>,
}Expand description
The configuration for the “plain” verification method.
Fields§
§identity_domain_matches: HashSet<DomainName>The identity of an artifact verifier must match one of the domains.
fingerprint_matches: HashSet<OpenpgpFingerprint>The fingerprint of an artifact verifier must match one of the fingerprints.
Implementations§
Source§impl PlainMode
impl PlainMode
Sourcepub fn new(
identity_domain_matches: HashSet<DomainName>,
fingerprint_matches: HashSet<OpenpgpFingerprint>,
) -> Self
pub fn new( identity_domain_matches: HashSet<DomainName>, fingerprint_matches: HashSet<OpenpgpFingerprint>, ) -> Self
Creates a new PlainMode.
Sourcepub(crate) fn from_config_with_defaults(
config: &ConfigPlainMode,
defaults: &PlainMode,
) -> Self
pub(crate) fn from_config_with_defaults( config: &ConfigPlainMode, defaults: &PlainMode, ) -> Self
Creates a new PlainMode from a ConfigPlainMode and defaults.
Sourcepub fn identity_domain_matches(&self) -> &HashSet<DomainName>
pub fn identity_domain_matches(&self) -> &HashSet<DomainName>
Returns a reference to the list of DomainName entries.
Sourcepub fn fingerprint_matches(&self) -> &HashSet<OpenpgpFingerprint>
pub fn fingerprint_matches(&self) -> &HashSet<OpenpgpFingerprint>
Returns a reference to the list of OpenpgpFingerprint entries.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlainMode
impl<'de> Deserialize<'de> for PlainMode
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
impl Eq for PlainMode
impl StructuralPartialEq for PlainMode
Auto Trait Implementations§
impl Freeze for PlainMode
impl RefUnwindSafe for PlainMode
impl Send for PlainMode
impl Sync for PlainMode
impl Unpin for PlainMode
impl UnwindSafe for PlainMode
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,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more