pub struct ConfigPlainMode {
identity_domain_matches: Option<HashSet<DomainName>>,
fingerprint_matches: Option<HashSet<OpenpgpFingerprint>>,
}Expand description
The configuration for the “plain” verification method.
Fields§
§identity_domain_matches: Option<HashSet<DomainName>>The identity of an artifact verifier must match one of the domains.
fingerprint_matches: Option<HashSet<OpenpgpFingerprint>>The fingerprint of an artifact verifier must match one of the fingerprints.
Implementations§
Source§impl ConfigPlainMode
impl ConfigPlainMode
Sourcepub(crate) fn new(
identity_domain_matches: Option<HashSet<DomainName>>,
fingerprint_matches: Option<HashSet<OpenpgpFingerprint>>,
) -> Self
pub(crate) fn new( identity_domain_matches: Option<HashSet<DomainName>>, fingerprint_matches: Option<HashSet<OpenpgpFingerprint>>, ) -> Self
Creates a new ConfigPlainMode.
Sourcepub fn identity_domain_matches(&self) -> Option<&HashSet<DomainName>>
pub fn identity_domain_matches(&self) -> Option<&HashSet<DomainName>>
Returns a reference to the optional set of DomainName entries.
Sourcepub fn fingerprint_matches(&self) -> Option<&HashSet<OpenpgpFingerprint>>
pub fn fingerprint_matches(&self) -> Option<&HashSet<OpenpgpFingerprint>>
Returns a reference to the optional set of OpenpgpFingerprint entries.
Trait Implementations§
Source§impl Clone for ConfigPlainMode
impl Clone for ConfigPlainMode
Source§fn clone(&self) -> ConfigPlainMode
fn clone(&self) -> ConfigPlainMode
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 ConfigPlainMode
impl Debug for ConfigPlainMode
Source§impl Default for ConfigPlainMode
impl Default for ConfigPlainMode
Source§fn default() -> ConfigPlainMode
fn default() -> ConfigPlainMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigPlainMode
impl<'de> Deserialize<'de> for ConfigPlainMode
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 PartialEq for ConfigPlainMode
impl PartialEq for ConfigPlainMode
Source§impl Serialize for ConfigPlainMode
impl Serialize for ConfigPlainMode
impl Eq for ConfigPlainMode
impl StructuralPartialEq for ConfigPlainMode
Auto Trait Implementations§
impl Freeze for ConfigPlainMode
impl RefUnwindSafe for ConfigPlainMode
impl Send for ConfigPlainMode
impl Sync for ConfigPlainMode
impl Unpin for ConfigPlainMode
impl UnwindSafe for ConfigPlainMode
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