pub(crate) struct ConfigOpenpgpSettings {
num_data_signatures: Option<NumDataSignatures>,
verification_method: ConfigVerificationMethod,
}Expand description
Fields§
§num_data_signatures: Option<NumDataSignatures>The number of signatures required for an artifact to be considered valid.
verification_method: ConfigVerificationMethodThe verification method to use.
Implementations§
Source§impl ConfigOpenpgpSettings
impl ConfigOpenpgpSettings
Sourcepub(crate) fn new(
num_data_signatures: Option<NumDataSignatures>,
verification_method: ConfigVerificationMethod,
) -> Result<Self, Error>
pub(crate) fn new( num_data_signatures: Option<NumDataSignatures>, verification_method: ConfigVerificationMethod, ) -> Result<Self, Error>
Creates a new ConfigOpenpgpSettings.
§Errors
Returns an error if the validation of the created ConfigOpenpgpSettings fails.
Sourcepub fn num_data_signatures(&self) -> Option<NumDataSignatures>
pub fn num_data_signatures(&self) -> Option<NumDataSignatures>
Returns the optional NumDataSignatures.
Sourcepub fn config_verification_method(&self) -> &ConfigVerificationMethod
pub fn config_verification_method(&self) -> &ConfigVerificationMethod
Returns a reference to the ConfigVerificationMethod.
Trait Implementations§
Source§impl Clone for ConfigOpenpgpSettings
impl Clone for ConfigOpenpgpSettings
Source§fn clone(&self) -> ConfigOpenpgpSettings
fn clone(&self) -> ConfigOpenpgpSettings
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 ConfigOpenpgpSettings
impl Debug for ConfigOpenpgpSettings
Source§impl Default for ConfigOpenpgpSettings
impl Default for ConfigOpenpgpSettings
Source§fn default() -> ConfigOpenpgpSettings
fn default() -> ConfigOpenpgpSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigOpenpgpSettings
impl<'de> Deserialize<'de> for ConfigOpenpgpSettings
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 ConfigOpenpgpSettings
impl PartialEq for ConfigOpenpgpSettings
Source§impl Serialize for ConfigOpenpgpSettings
impl Serialize for ConfigOpenpgpSettings
Source§impl Validate for ConfigOpenpgpSettings
impl Validate for ConfigOpenpgpSettings
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 ConfigOpenpgpSettings
impl StructuralPartialEq for ConfigOpenpgpSettings
Auto Trait Implementations§
impl Freeze for ConfigOpenpgpSettings
impl RefUnwindSafe for ConfigOpenpgpSettings
impl Send for ConfigOpenpgpSettings
impl Sync for ConfigOpenpgpSettings
impl Unpin for ConfigOpenpgpSettings
impl UnwindSafe for ConfigOpenpgpSettings
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