pub enum RuleMatchMode {
FirstMatch,
AllMatch,
AllMatchOrdered,
FirstSuccess,
}Expand description
规则匹配模式
Variants§
FirstMatch
第一个匹配的规则执行后停止
AllMatch
执行所有匹配的规则
AllMatchOrdered
按优先级执行所有匹配的规则
FirstSuccess
执行到第一个成功的规则为止
Trait Implementations§
Source§impl Clone for RuleMatchMode
impl Clone for RuleMatchMode
Source§fn clone(&self) -> RuleMatchMode
fn clone(&self) -> RuleMatchMode
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 RuleMatchMode
impl Debug for RuleMatchMode
Source§impl Default for RuleMatchMode
impl Default for RuleMatchMode
Source§fn default() -> RuleMatchMode
fn default() -> RuleMatchMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuleMatchMode
impl<'de> Deserialize<'de> for RuleMatchMode
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 RuleMatchMode
impl RefUnwindSafe for RuleMatchMode
impl Send for RuleMatchMode
impl Sync for RuleMatchMode
impl Unpin for RuleMatchMode
impl UnsafeUnpin for RuleMatchMode
impl UnwindSafe for RuleMatchMode
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