pub trait ConfigurationRule: Send + Sync {
// Required method
fn apply(
&self,
configurator: &mut ProviderConfigurator,
) -> Result<(), ConfigError>;
// Provided methods
fn description(&self) -> &'static str { ... }
fn priority(&self) -> u32 { ... }
}
Expand description
Trait for custom configuration rules
Required Methods§
Sourcefn apply(
&self,
configurator: &mut ProviderConfigurator,
) -> Result<(), ConfigError>
fn apply( &self, configurator: &mut ProviderConfigurator, ) -> Result<(), ConfigError>
Apply the configuration rule to the provider configurator
Provided Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Get a description of what this rule does