pub struct RuleSettings {
pub level: Option<Level>,
pub options: RuleTable,
}Fields§
§level: Option<Level>§options: RuleTableImplementations§
Source§impl RuleSettings
impl RuleSettings
pub fn merge(&self, override_settings: &Self) -> Self
pub fn with_default_level(self, default_level: Level) -> Self
Trait Implementations§
Source§impl Clone for RuleSettings
impl Clone for RuleSettings
Source§fn clone(&self) -> RuleSettings
fn clone(&self) -> RuleSettings
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 RuleSettings
impl Debug for RuleSettings
Source§impl Default for RuleSettings
impl Default for RuleSettings
Source§fn default() -> RuleSettings
fn default() -> RuleSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuleSettings
impl<'de> Deserialize<'de> for RuleSettings
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 RuleSettings
impl RefUnwindSafe for RuleSettings
impl Send for RuleSettings
impl Sync for RuleSettings
impl Unpin for RuleSettings
impl UnsafeUnpin for RuleSettings
impl UnwindSafe for RuleSettings
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