pub(crate) enum ConfigVerificationMethod {
Plain(ConfigPlainMode),
TrustAnchor(ConfigTrustAnchorMode),
WebOfTrust(ConfigWebOfTrustMode),
}Expand description
The OpenPGP verification method to use for OpenPGP verifiers.
§Note
This enum must be validated after creation.
Variants§
Plain(ConfigPlainMode)
Only use artifact verifiers, ignore trust-anchors.
TrustAnchor(ConfigTrustAnchorMode)
Always use trust-anchors for artifact verifiers.
WebOfTrust(ConfigWebOfTrustMode)
Use the “Web of Trust” model.
Trait Implementations§
Source§impl Clone for ConfigVerificationMethod
impl Clone for ConfigVerificationMethod
Source§fn clone(&self) -> ConfigVerificationMethod
fn clone(&self) -> ConfigVerificationMethod
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 ConfigVerificationMethod
impl Debug for ConfigVerificationMethod
Source§impl Default for ConfigVerificationMethod
impl Default for ConfigVerificationMethod
Source§impl<'de> Deserialize<'de> for ConfigVerificationMethod
impl<'de> Deserialize<'de> for ConfigVerificationMethod
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 ConfigVerificationMethod
impl PartialEq for ConfigVerificationMethod
Source§impl Serialize for ConfigVerificationMethod
impl Serialize for ConfigVerificationMethod
Source§impl Validate for ConfigVerificationMethod
impl Validate for ConfigVerificationMethod
Source§fn validate_into(
&self,
__garde_user_ctx: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, __garde_user_ctx: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Validates
Self, aggregating all validation errors into Report.§fn validate(&self) -> Result<(), Report>where
Self::Context: Default,
fn validate(&self) -> Result<(), Report>where
Self::Context: Default,
Validates
Self, returning an Err with an aggregate of all errors if
the validation failed. Read more§fn validate_with(&self, ctx: &Self::Context) -> Result<(), Report>
fn validate_with(&self, ctx: &Self::Context) -> Result<(), Report>
Validates
Self, returning an Err with an aggregate of all errors if
the validation failed. Read moreimpl Eq for ConfigVerificationMethod
impl StructuralPartialEq for ConfigVerificationMethod
Auto Trait Implementations§
impl Freeze for ConfigVerificationMethod
impl RefUnwindSafe for ConfigVerificationMethod
impl Send for ConfigVerificationMethod
impl Sync for ConfigVerificationMethod
impl Unpin for ConfigVerificationMethod
impl UnwindSafe for ConfigVerificationMethod
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