pub struct QueryOptions {
pub start_time: Option<DateTime<Utc>>,
pub end_time: Option<DateTime<Utc>>,
pub cursor: Option<String>,
pub include_cursor: bool,
pub no_cache: bool,
pub save: bool,
pub format: AplResultFormat,
pub include_cursor_field: bool,
}
Expand description
The optional parameters to APL query methods.
Fields§
§start_time: Option<DateTime<Utc>>
The start time of the query.
end_time: Option<DateTime<Utc>>
The end time of the query.
cursor: Option<String>
The cursor for use in pagination.
include_cursor: bool
Specifies whether the event that matches the cursor should be included in the result.
no_cache: bool
Omits the query cache.
save: bool
Save the query on the server, if set to true
. The ID of the saved query
is returned with the query result as part of the response.
format: AplResultFormat
Format specifies the format of the APL query. Defaults to Legacy.
include_cursor_field: bool
Requests the cursor to be included in the response
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for QueryOptions
impl Debug for QueryOptions
Source§impl Default for QueryOptions
impl Default for QueryOptions
Source§fn default() -> QueryOptions
fn default() -> QueryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnwindSafe for QueryOptions
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