Struct google_firestore1_beta1::api::Avg
source · pub struct Avg {
pub field: Option<FieldReference>,
}
Expand description
Average of the values of the requested field. * Only numeric values will be aggregated. All non-numeric values including NULL
are skipped. * If the aggregated values contain NaN
, returns NaN
. Infinity math follows IEEE-754 standards. * If the aggregated value set is empty, returns NULL
. * Always returns the result as a double.
This type is not used in any activity, and only used as part of another schema.
Fields§
§field: Option<FieldReference>
The field to aggregate on.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Avg
impl<'de> Deserialize<'de> for Avg
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
impl Part for Avg
Auto Trait Implementations§
impl RefUnwindSafe for Avg
impl Send for Avg
impl Sync for Avg
impl Unpin for Avg
impl UnwindSafe for Avg
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