pub struct LogFilter {
pub min_level: Option<LogLevel>,
pub category: Option<String>,
pub message_contains: Option<String>,
pub range_start: Option<Timecode>,
pub range_end: Option<Timecode>,
}Expand description
Filter criteria for querying log entries.
Fields§
§min_level: Option<LogLevel>Minimum log level (inclusive).
category: Option<String>Required category (exact match).
message_contains: Option<String>Substring match on message.
range_start: Option<Timecode>Start timecode of the range (inclusive).
range_end: Option<Timecode>End timecode of the range (inclusive).
Implementations§
Source§impl LogFilter
impl LogFilter
Sourcepub fn with_min_level(self, level: LogLevel) -> Self
pub fn with_min_level(self, level: LogLevel) -> Self
Filter by minimum level.
Sourcepub fn with_category(self, cat: impl Into<String>) -> Self
pub fn with_category(self, cat: impl Into<String>) -> Self
Filter by category.
Sourcepub fn with_message(self, msg: impl Into<String>) -> Self
pub fn with_message(self, msg: impl Into<String>) -> Self
Filter by message substring.
Sourcepub fn with_range(self, start: Timecode, end: Timecode) -> Self
pub fn with_range(self, start: Timecode, end: Timecode) -> Self
Filter by timecode range.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogFilter
impl RefUnwindSafe for LogFilter
impl Send for LogFilter
impl Sync for LogFilter
impl Unpin for LogFilter
impl UnsafeUnpin for LogFilter
impl UnwindSafe for LogFilter
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