pub struct ConfigTechnologySettings {
pub(crate) origins: Vec<ConfigOrigin>,
openpgp: Option<ConfigOpenpgpSettings>,
}Expand description
Settings for all supported cryptographic technologies.
Describes zero or more settings for supported cryptographic technologies in a configuration file. May be used globally, or on an OS-specific level.
§Note
This struct must be validated after creation.
Fields§
§origins: Vec<ConfigOrigin>§openpgp: Option<ConfigOpenpgpSettings>Implementations§
Source§impl ConfigTechnologySettings
impl ConfigTechnologySettings
Sourcepub(crate) fn new(
origins: Vec<ConfigOrigin>,
openpgp: Option<ConfigOpenpgpSettings>,
) -> Self
pub(crate) fn new( origins: Vec<ConfigOrigin>, openpgp: Option<ConfigOpenpgpSettings>, ) -> Self
Creates a new ConfigTechnologySettings.
Sourcepub(crate) fn config_openpgp_settings(&self) -> Option<&ConfigOpenpgpSettings>
pub(crate) fn config_openpgp_settings(&self) -> Option<&ConfigOpenpgpSettings>
Returns a reference to the ConfigOpenpgpSettings.
Sourcepub fn origins(&self) -> &[ConfigOrigin]
pub fn origins(&self) -> &[ConfigOrigin]
Returns a reference to the list of config file origins.
Trait Implementations§
Source§impl Clone for ConfigTechnologySettings
impl Clone for ConfigTechnologySettings
Source§fn clone(&self) -> ConfigTechnologySettings
fn clone(&self) -> ConfigTechnologySettings
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 ConfigTechnologySettings
impl Debug for ConfigTechnologySettings
Source§impl Default for ConfigTechnologySettings
impl Default for ConfigTechnologySettings
Source§impl<'de> Deserialize<'de> for ConfigTechnologySettings
impl<'de> Deserialize<'de> for ConfigTechnologySettings
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 ConfigTechnologySettings
impl PartialEq for ConfigTechnologySettings
Source§impl Serialize for ConfigTechnologySettings
impl Serialize for ConfigTechnologySettings
Source§impl Validate for ConfigTechnologySettings
impl Validate for ConfigTechnologySettings
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 ConfigTechnologySettings
impl StructuralPartialEq for ConfigTechnologySettings
Auto Trait Implementations§
impl Freeze for ConfigTechnologySettings
impl RefUnwindSafe for ConfigTechnologySettings
impl Send for ConfigTechnologySettings
impl Sync for ConfigTechnologySettings
impl Unpin for ConfigTechnologySettings
impl UnwindSafe for ConfigTechnologySettings
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