pub struct AggregationOperation {
pub field: String,
pub op: AggregationOpType,
pub alias: Option<String>,
pub expand_array: Option<bool>,
}Expand description
AggregationOperation : An operation that will be applied on a field
Fields§
§field: StringThe field to operate on
op: AggregationOpType§alias: Option<String>Optional alias for the output; if not provided, a default alias is computed
expand_array: Option<bool>Implementations§
Source§impl AggregationOperation
impl AggregationOperation
Sourcepub fn new(field: String, op: AggregationOpType) -> AggregationOperation
pub fn new(field: String, op: AggregationOpType) -> AggregationOperation
An operation that will be applied on a field
Trait Implementations§
Source§impl Clone for AggregationOperation
impl Clone for AggregationOperation
Source§fn clone(&self) -> AggregationOperation
fn clone(&self) -> AggregationOperation
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 AggregationOperation
impl Debug for AggregationOperation
Source§impl Default for AggregationOperation
impl Default for AggregationOperation
Source§fn default() -> AggregationOperation
fn default() -> AggregationOperation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AggregationOperation
impl<'de> Deserialize<'de> for AggregationOperation
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 AggregationOperation
impl PartialEq for AggregationOperation
Source§impl Serialize for AggregationOperation
impl Serialize for AggregationOperation
impl StructuralPartialEq for AggregationOperation
Auto Trait Implementations§
impl Freeze for AggregationOperation
impl RefUnwindSafe for AggregationOperation
impl Send for AggregationOperation
impl Sync for AggregationOperation
impl Unpin for AggregationOperation
impl UnwindSafe for AggregationOperation
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