Struct google_firestore1_beta1::api::Aggregation
source · pub struct Aggregation {
pub alias: Option<String>,
pub avg: Option<Avg>,
pub count: Option<Count>,
pub sum: Option<Sum>,
}
Expand description
Defines an aggregation that produces a single result.
This type is not used in any activity, and only used as part of another schema.
Fields§
§alias: Option<String>
Optional. Optional name of the field to store the result of the aggregation into. If not provided, Firestore will pick a default name following the format field_
. For example: AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... );
becomes: AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS field_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS field_2 OVER ( ... );
Requires: * Must be unique across all aggregation aliases. * Conform to document field name limitations.
avg: Option<Avg>
Average aggregator.
count: Option<Count>
Count aggregator.
sum: Option<Sum>
Sum aggregator.
Trait Implementations§
source§impl Clone for Aggregation
impl Clone for Aggregation
source§fn clone(&self) -> Aggregation
fn clone(&self) -> Aggregation
Returns a copy 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 Aggregation
impl Debug for Aggregation
source§impl Default for Aggregation
impl Default for Aggregation
source§fn default() -> Aggregation
fn default() -> Aggregation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Aggregation
impl<'de> Deserialize<'de> for Aggregation
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 Serialize for Aggregation
impl Serialize for Aggregation
impl Part for Aggregation
Auto Trait Implementations§
impl RefUnwindSafe for Aggregation
impl Send for Aggregation
impl Sync for Aggregation
impl Unpin for Aggregation
impl UnwindSafe for Aggregation
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