pub struct MessageSearchOptions {
pub range: Option<Duration>,
pub start: Option<SystemTime>,
pub end: Option<SystemTime>,
pub keyword: Option<String>,
pub limit: Option<usize>,
pub offset: usize,
pub fields: Vec<String>,
pub sort: Vec<SearchSort>,
pub streams: Vec<String>,
}Expand description
Options of GraylogClient::search. Give at most one of range, start/end and
keyword; the default searches the last 5 minutes of every readable stream, newest first,
100 per page.
Fields§
§range: Option<Duration>Relative range ending now (whole seconds, rounded up; default 300 s).
start: Option<SystemTime>Start of an absolute range (default end − 300 s).
end: Option<SystemTime>End of an absolute range (default now).
keyword: Option<String>Graylog keyword range such as last five minutes.
limit: Option<usize>Page size (default 100, at most 10 000).
offset: usizeMatches to skip (pagination).
fields: Vec<String>Returned fields (Graylog always adds _id); empty = all.
sort: Vec<SearchSort>Sort keys (default timestamp descending); later keys break ties.
streams: Vec<String>Stream ids to search (default: every stream the caller may read).
Trait Implementations§
Source§impl Clone for MessageSearchOptions
impl Clone for MessageSearchOptions
Source§impl Debug for MessageSearchOptions
impl Debug for MessageSearchOptions
Source§impl Default for MessageSearchOptions
impl Default for MessageSearchOptions
impl Eq for MessageSearchOptions
Source§impl PartialEq for MessageSearchOptions
impl PartialEq for MessageSearchOptions
impl StructuralPartialEq for MessageSearchOptions
Auto Trait Implementations§
impl Forget for MessageSearchOptions
impl Freeze for MessageSearchOptions
impl Move for MessageSearchOptions
impl RefUnwindSafe for MessageSearchOptions
impl Send for MessageSearchOptions
impl Sync for MessageSearchOptions
impl Unpin for MessageSearchOptions
impl UnsafeUnpin for MessageSearchOptions
impl UnwindSafe for MessageSearchOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.