#[non_exhaustive]pub struct EventsScalarQuery {
pub compute: EventsCompute,
pub data_source: EventsDataSource,
pub group_by: Option<Vec<EventsGroupBy>>,
pub indexes: Option<Vec<String>>,
pub name: Option<String>,
pub search: Option<EventsSearch>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
An individual scalar events query.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.compute: EventsCompute
The instructions for what to compute for this query.
data_source: EventsDataSource
A data source that is powered by the Events Platform.
group_by: Option<Vec<EventsGroupBy>>
The list of facets on which to split results.
indexes: Option<Vec<String>>
The indexes in which to search.
name: Option<String>
The variable name for use in formulas.
search: Option<EventsSearch>
Configuration of the search/filter for an events query.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl EventsScalarQuery
impl EventsScalarQuery
pub fn new( compute: EventsCompute, data_source: EventsDataSource, ) -> EventsScalarQuery
pub fn group_by(self, value: Vec<EventsGroupBy>) -> Self
pub fn indexes(self, value: Vec<String>) -> Self
pub fn name(self, value: String) -> Self
pub fn search(self, value: EventsSearch) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for EventsScalarQuery
impl Clone for EventsScalarQuery
Source§fn clone(&self) -> EventsScalarQuery
fn clone(&self) -> EventsScalarQuery
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 EventsScalarQuery
impl Debug for EventsScalarQuery
Source§impl<'de> Deserialize<'de> for EventsScalarQuery
impl<'de> Deserialize<'de> for EventsScalarQuery
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 EventsScalarQuery
impl PartialEq for EventsScalarQuery
Source§impl Serialize for EventsScalarQuery
impl Serialize for EventsScalarQuery
impl StructuralPartialEq for EventsScalarQuery
Auto Trait Implementations§
impl Freeze for EventsScalarQuery
impl RefUnwindSafe for EventsScalarQuery
impl Send for EventsScalarQuery
impl Sync for EventsScalarQuery
impl Unpin for EventsScalarQuery
impl UnwindSafe for EventsScalarQuery
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