pub struct EncodingSortFieldFieldNameBuilder { /* private fields */ }
Expand description
Builder for EncodingSortFieldFieldName
.
Implementations§
source§impl EncodingSortFieldFieldNameBuilder
impl EncodingSortFieldFieldNameBuilder
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 to sort by.
Default value: If unspecified, defaults to the field specified in the outer data reference.
sourcepub fn op<VALUE: Into<NonArgAggregateOp>>(&mut self, value: VALUE) -> &mut Self
pub fn op<VALUE: Into<NonArgAggregateOp>>(&mut self, value: VALUE) -> &mut Self
An aggregate operation to
perform on the field prior to sorting (e.g., "count"
, "mean"
and "median"
). An
aggregation is required when there are multiple values of the sort field for each encoded
data field. The input data objects will be aggregated, grouped by the encoded data
field.
For a full list of operations, please see the documentation for aggregate.
Default value: "sum"
for stacked plots. Otherwise, "min"
.
sourcepub fn order<VALUE: Into<RemovableValue<SortOrder>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn order<VALUE: Into<RemovableValue<SortOrder>>>( &mut self, value: VALUE ) -> &mut Self
The sort order. One of "ascending"
(default), "descending"
, or null
(no not sort).
sourcepub fn build(
&self
) -> Result<EncodingSortFieldFieldName, EncodingSortFieldFieldNameBuilderError>
pub fn build( &self ) -> Result<EncodingSortFieldFieldName, EncodingSortFieldFieldNameBuilderError>
Trait Implementations§
source§impl Clone for EncodingSortFieldFieldNameBuilder
impl Clone for EncodingSortFieldFieldNameBuilder
source§fn clone(&self) -> EncodingSortFieldFieldNameBuilder
fn clone(&self) -> EncodingSortFieldFieldNameBuilder
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 EncodingSortFieldFieldNameBuilder
impl Send for EncodingSortFieldFieldNameBuilder
impl Sync for EncodingSortFieldFieldNameBuilder
impl Unpin for EncodingSortFieldFieldNameBuilder
impl UnwindSafe for EncodingSortFieldFieldNameBuilder
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