pub struct ConfigContextSettings {
pub(crate) purpose: ConfigPurpose,
pub(crate) context: ConfigContext,
pub(crate) technology_settings: ConfigTechnologySettings,
}Expand description
Settings for a specific context in a VOA purpose.
This is a specialization for a specific context, which overrides any default technology settings set on an OS level.
Fields§
§purpose: ConfigPurposeThe VOA purpose for this override.
context: ConfigContextThe VOA context for this override.
technology_settings: ConfigTechnologySettingsThe specific technology settings.
Implementations§
Source§impl ConfigContextSettings
impl ConfigContextSettings
Sourcepub fn new(
purpose: impl Into<ConfigPurpose>,
context: impl Into<ConfigContext>,
technologies: ConfigTechnologySettings,
) -> Self
pub fn new( purpose: impl Into<ConfigPurpose>, context: impl Into<ConfigContext>, technologies: ConfigTechnologySettings, ) -> Self
Creates a new ConfigContextSettings.
Sourcepub fn config_technology_settings(&self) -> &ConfigTechnologySettings
pub fn config_technology_settings(&self) -> &ConfigTechnologySettings
Returns a reference to the ConfigTechnologySettings.
Trait Implementations§
Source§impl Debug for ConfigContextSettings
impl Debug for ConfigContextSettings
Source§impl<'de> Deserialize<'de> for ConfigContextSettings
impl<'de> Deserialize<'de> for ConfigContextSettings
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 Serialize for ConfigContextSettings
impl Serialize for ConfigContextSettings
Source§impl Validate for ConfigContextSettings
impl Validate for ConfigContextSettings
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 moreAuto Trait Implementations§
impl Freeze for ConfigContextSettings
impl RefUnwindSafe for ConfigContextSettings
impl Send for ConfigContextSettings
impl Sync for ConfigContextSettings
impl Unpin for ConfigContextSettings
impl UnwindSafe for ConfigContextSettings
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