pub struct ProfilesConfig {
pub default: Profile,
pub fast: ProfileThresholds,
pub balanced: ProfileThresholds,
pub strict: ProfileThresholds,
}Expand description
All profiles configuration
Fields§
§default: ProfileDefault profile to use
fast: ProfileThresholdsFast profile thresholds
balanced: ProfileThresholdsBalanced profile thresholds
strict: ProfileThresholdsStrict profile thresholds
Implementations§
Source§impl ProfilesConfig
impl ProfilesConfig
Sourcepub fn get_thresholds(&self, profile: Profile) -> &ProfileThresholds
pub fn get_thresholds(&self, profile: Profile) -> &ProfileThresholds
Get thresholds for the specified profile
Trait Implementations§
Source§impl Clone for ProfilesConfig
impl Clone for ProfilesConfig
Source§fn clone(&self) -> ProfilesConfig
fn clone(&self) -> ProfilesConfig
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 ProfilesConfig
impl Debug for ProfilesConfig
Source§impl Default for ProfilesConfig
impl Default for ProfilesConfig
Source§fn default() -> ProfilesConfig
fn default() -> ProfilesConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProfilesConfig
impl<'de> Deserialize<'de> for ProfilesConfig
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
Auto Trait Implementations§
impl Freeze for ProfilesConfig
impl RefUnwindSafe for ProfilesConfig
impl Send for ProfilesConfig
impl Sync for ProfilesConfig
impl Unpin for ProfilesConfig
impl UnwindSafe for ProfilesConfig
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