pub struct JoinAggregateFieldDefBuilder { /* private fields */ }
Expand description
Builder for JoinAggregateFieldDef
.
Implementations§
source§impl JoinAggregateFieldDefBuilder
impl JoinAggregateFieldDefBuilder
sourcepub fn join_aggregate_field_def_as<VALUE: Into<String>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn join_aggregate_field_def_as<VALUE: Into<String>>( &mut self, value: VALUE ) -> &mut Self
The output name for the join aggregate operation.
sourcepub fn field<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn field<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The data field for which to compute the aggregate function. This can be omitted for
functions that do not operate over a field such as "count"
.
sourcepub fn op<VALUE: Into<AggregateOp>>(&mut self, value: VALUE) -> &mut Self
pub fn op<VALUE: Into<AggregateOp>>(&mut self, value: VALUE) -> &mut Self
The aggregation operation to apply (e.g., "sum"
, "average"
or "count"
). See the
list of all supported operations
here.
sourcepub fn build(
&self
) -> Result<JoinAggregateFieldDef, JoinAggregateFieldDefBuilderError>
pub fn build( &self ) -> Result<JoinAggregateFieldDef, JoinAggregateFieldDefBuilderError>
Trait Implementations§
source§impl Clone for JoinAggregateFieldDefBuilder
impl Clone for JoinAggregateFieldDefBuilder
source§fn clone(&self) -> JoinAggregateFieldDefBuilder
fn clone(&self) -> JoinAggregateFieldDefBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for JoinAggregateFieldDefBuilder
impl Send for JoinAggregateFieldDefBuilder
impl Sync for JoinAggregateFieldDefBuilder
impl Unpin for JoinAggregateFieldDefBuilder
impl UnwindSafe for JoinAggregateFieldDefBuilder
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