pub struct Query {
Show 13 fields pub start_time: Option<DateTime<Utc>>, pub end_time: Option<DateTime<Utc>>, pub resolution: String, pub aggregations: Vec<Aggregation>, pub filter: Option<Filter>, pub group_by: Vec<String>, pub order: Vec<Order>, pub limit: u32, pub virtual_fields: Vec<VirtualField>, pub projections: Vec<Projection>, pub cursor: String, pub include_cursor: bool, pub continuation_token: String,
}
Expand description

A query that gets executed on a dataset. If you’re looking for the APL query, check out AplQuery.

Fields

start_time: Option<DateTime<Utc>>

Start time of the query.

end_time: Option<DateTime<Utc>>

End time of the query.

resolution: String

Resolution of the queries graph. Valid values are the queries time range / 100 at maximum and / 1000 at minimum. Use zero value for serve-side auto-detection.

aggregations: Vec<Aggregation>

Aggregations performed as part of the query.

filter: Option<Filter>

Filter applied on the queried results.

group_by: Vec<String>

Field names to group the query results by.

order: Vec<Order>

Order rules that specify the order of the query result.

limit: u32

Number of results returned from the query.

virtual_fields: Vec<VirtualField>

Virtual fields that can be referenced by aggregations, filters and orders.

projections: Vec<Projection>cursor: String

The query cursor. Should be set to the cursor returned with a previous query result, if it was parital.

include_cursor: bool

Return the Cursor as part of the query result.

continuation_token: String

Used to get more results of a previous query. It is not valid for starred queries or otherwise stored queries.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more