pub struct Filter<'a> {
pub since_date: Option<NaiveDateTime>,
pub short_name_whitelist: Option<BTreeSet<&'a str>>,
pub short_name_blacklist: Option<BTreeSet<&'a str>>,
}Fields§
§since_date: Option<NaiveDateTime>§short_name_whitelist: Option<BTreeSet<&'a str>>§short_name_blacklist: Option<BTreeSet<&'a str>>Implementations§
Source§impl<'a> Filter<'a>
impl<'a> Filter<'a>
pub fn filter_event<'e>( &self, event: MessageEvent<'e>, ) -> Option<MessageEvent<'e>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Filter<'a>
impl<'a> RefUnwindSafe for Filter<'a>
impl<'a> Send for Filter<'a>
impl<'a> Sync for Filter<'a>
impl<'a> Unpin for Filter<'a>
impl<'a> UnsafeUnpin for Filter<'a>
impl<'a> UnwindSafe for Filter<'a>
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