pub struct LogListQuery { /* private fields */ }Expand description
Which lines LogsApi::list returns. Only the settings given a value
are sent, except since. The API pages logs by time and count, not by
offset, and the engine reports all-zero pagination for them, so
Page::has_next is always false here: to read on, ask again with
since or until past the last line.
Implementations§
Source§impl LogListQuery
impl LogListQuery
Sourcepub fn new() -> Self
pub fn new() -> Self
Every line, in the engine’s default order and page size. Without
since the query asks for lines since 1970-01-01.
Sourcepub fn since(self, since: SystemTime) -> Self
pub fn since(self, since: SystemTime) -> Self
Written at or after since.
Sourcepub fn until(self, until: SystemTime) -> Self
pub fn until(self, until: SystemTime) -> Self
Written before until.
Sourcepub fn levels(self, levels: impl IntoIterator<Item = LogLevel>) -> Self
pub fn levels(self, levels: impl IntoIterator<Item = LogLevel>) -> Self
Only these levels.
Sourcepub fn direction(self, direction: SortDirection) -> Self
pub fn direction(self, direction: SortDirection) -> Self
Oldest or newest first.
Trait Implementations§
Source§impl Clone for LogListQuery
impl Clone for LogListQuery
Source§impl Debug for LogListQuery
impl Debug for LogListQuery
Auto Trait Implementations§
impl Forget for LogListQuery
impl Freeze for LogListQuery
impl Move for LogListQuery
impl RefUnwindSafe for LogListQuery
impl Send for LogListQuery
impl Sync for LogListQuery
impl Unpin for LogListQuery
impl UnsafeUnpin for LogListQuery
impl UnwindSafe for LogListQuery
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