pub struct RuleConfig { /* private fields */ }Implementations§
Source§impl RuleConfig
impl RuleConfig
pub fn new() -> RuleConfig
pub fn with_pattern(self, pattern: Pattern) -> RuleConfig
pub fn add_pattern(&mut self, pattern: Pattern)
pub fn with_action(self, action: RuleAction) -> RuleConfig
pub fn set_action(&mut self, action: Option<RuleAction>)
pub fn action(&self) -> RuleAction
pub fn patterns(&self) -> &[Pattern]
pub fn add_description(&mut self, description: &str)
pub fn with_description(self, description: &str) -> RuleConfig
pub fn description(&self) -> Option<&str>
pub fn filter(&self) -> Option<bool>
Trait Implementations§
Source§impl Clone for RuleConfig
impl Clone for RuleConfig
Source§fn clone(&self) -> RuleConfig
fn clone(&self) -> RuleConfig
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 RuleConfig
impl Debug for RuleConfig
Source§impl<'de> Deserialize<'de> for RuleConfig
impl<'de> Deserialize<'de> for RuleConfig
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 RuleConfig
impl RefUnwindSafe for RuleConfig
impl Send for RuleConfig
impl Sync for RuleConfig
impl Unpin for RuleConfig
impl UnwindSafe for RuleConfig
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