pub struct AnalyticsQuery {
pub table: TableTrue,
pub group_by: Option<Vec<GroupByTrue>>,
pub name: String,
pub time_range: Option<TimeRange>,
pub operations: Vec<AnalyticsOperation>,
}
Fields§
§table: TableTrue
This is the table you want to query.
group_by: Option<Vec<GroupByTrue>>
This is the list of columns you want to group by.
name: String
This is the name of the query. This will be used to identify the query in the response.
time_range: Option<TimeRange>
This is the time range for the query.
operations: Vec<AnalyticsOperation>
This is the list of operations you want to perform.
Implementations§
Source§impl AnalyticsQuery
impl AnalyticsQuery
pub fn new( table: TableTrue, name: String, operations: Vec<AnalyticsOperation>, ) -> AnalyticsQuery
Trait Implementations§
Source§impl Clone for AnalyticsQuery
impl Clone for AnalyticsQuery
Source§fn clone(&self) -> AnalyticsQuery
fn clone(&self) -> AnalyticsQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AnalyticsQuery
impl Debug for AnalyticsQuery
Source§impl Default for AnalyticsQuery
impl Default for AnalyticsQuery
Source§fn default() -> AnalyticsQuery
fn default() -> AnalyticsQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnalyticsQuery
impl<'de> Deserialize<'de> for AnalyticsQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AnalyticsQuery
impl PartialEq for AnalyticsQuery
Source§impl Serialize for AnalyticsQuery
impl Serialize for AnalyticsQuery
impl StructuralPartialEq for AnalyticsQuery
Auto Trait Implementations§
impl Freeze for AnalyticsQuery
impl RefUnwindSafe for AnalyticsQuery
impl Send for AnalyticsQuery
impl Sync for AnalyticsQuery
impl Unpin for AnalyticsQuery
impl UnwindSafe for AnalyticsQuery
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