Struct tracing_layer_discord::EventFilters
source · pub struct EventFilters { /* private fields */ }
Expand description
EventFilters describes two optional lists of regular expressions used to filter events.
If provided, each expression is used in either negatively (“does NOT MATCH”) or positively (“does MATCH”) filter against a specified value.
Implementations§
Trait Implementations§
source§impl Clone for EventFilters
impl Clone for EventFilters
source§fn clone(&self) -> EventFilters
fn clone(&self) -> EventFilters
Returns a copy 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 EventFilters
impl Debug for EventFilters
source§impl Default for EventFilters
impl Default for EventFilters
source§fn default() -> EventFilters
fn default() -> EventFilters
Returns the “default value” for a type. Read more
source§impl From<(Option<Regex>, Option<Regex>)> for EventFilters
impl From<(Option<Regex>, Option<Regex>)> for EventFilters
Interpret and convert a pair of regex as a single positive filter and a single negative filter.
source§impl From<(Regex, Regex)> for EventFilters
impl From<(Regex, Regex)> for EventFilters
Interpret and convert a pair of regex as a single positive filter and a single negative filter.
source§impl From<(Vec<Regex>, Vec<Regex>)> for EventFilters
impl From<(Vec<Regex>, Vec<Regex>)> for EventFilters
Interpret and convert a pair of lists of regex as positive and negative filters.
source§impl From<Regex> for EventFilters
impl From<Regex> for EventFilters
Interpret and convert a single regex as a single positive filter and no negative filter.
source§fn from(positive: Regex) -> EventFilters
fn from(positive: Regex) -> EventFilters
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EventFilters
impl RefUnwindSafe for EventFilters
impl Send for EventFilters
impl Sync for EventFilters
impl Unpin for EventFilters
impl UnwindSafe for EventFilters
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