pub struct GetLogsRequestBuilder { /* private fields */ }
Implementations§
Source§impl GetLogsRequestBuilder
impl GetLogsRequestBuilder
pub fn send(self) -> ResponseResultBoxFuture<GetLogsResponse>
Sourcepub fn from(self, from: i64) -> Self
pub fn from(self, from: i64) -> Self
Required, the start time of the query, in unix timestamp, in seconds, e.g., 1609459200.
Sourcepub fn to(self, to: i64) -> Self
pub fn to(self, to: i64) -> Self
Required, the end time of the query, in unix timestamp, in seconds, e.g., 1609459200.
Sourcepub fn topic<T: Into<String>>(self, topic: T) -> Self
pub fn topic<T: Into<String>>(self, topic: T) -> Self
Optional, the topic of the logs to query.
Sourcepub fn lines(self, lines: u32) -> Self
pub fn lines(self, lines: u32) -> Self
The number of logs to return, required if the query is not in sql mode.
Sourcepub fn offset(self, offset: u32) -> Self
pub fn offset(self, offset: u32) -> Self
The offset of the logs to return, required if the query is not in sql mode.
Sourcepub fn reverse(self, reverse: bool) -> Self
pub fn reverse(self, reverse: bool) -> Self
Optional, whether to return the logs in reverse order, default false.
Sourcepub fn from_ns_part(self, from_ns_part: u32) -> Self
pub fn from_ns_part(self, from_ns_part: u32) -> Self
Optional, the nano part of start time of the query, ranges from 0 to 999999999.
Sourcepub fn to_ns_part(self, to_ns_part: u32) -> Self
pub fn to_ns_part(self, to_ns_part: u32) -> Self
Optional, the nano part of end time of the query, ranges from 0 to 999999999.
Sourcepub fn need_highlight(self, need_highlight: bool) -> Self
pub fn need_highlight(self, need_highlight: bool) -> Self
Optional, whether to return the highlight of query results.
Auto Trait Implementations§
impl Freeze for GetLogsRequestBuilder
impl !RefUnwindSafe for GetLogsRequestBuilder
impl Send for GetLogsRequestBuilder
impl Sync for GetLogsRequestBuilder
impl Unpin for GetLogsRequestBuilder
impl !UnwindSafe for GetLogsRequestBuilder
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