pub enum SortUnion {
EncodingSortField(EncodingSortField),
Enum(Sort),
UnionArray(Vec<SelectionInitInterval>),
}
Expand description
Sort order for the encoded field.
For continuous fields (quantitative or temporal), sort
can be either "ascending"
or
"descending"
.
For discrete fields, sort
can be one of the following: - "ascending"
or
"descending"
– for sorting by the values’ natural order in JavaScript. - A string
indicating an encoding channel name to sort
by (e.g., "x"
or
"y"
) with an optional minus prefix for descending sort (e.g., "-x"
to sort by
x-field, descending). This channel string is short-form of a sort-by-encoding
definition. For
example, "sort": "-x"
is equivalent to "sort": {"encoding": "x", "order": "descending"}
. - A sort field
definition for sorting by
another field. - An array specifying the field values in preferred
order. In this case, the
sort order will obey the values in the array, followed by any unspecified values in their
original order. For discrete time field, values in the sort array can be date-time
definition objects. In addition, for time units "month"
and "day"
,
the values can be the month or day names (case insensitive) or their 3-letter initials
(e.g., "Mon"
, "Tue"
). - null
indicating no sort.
Default value: "ascending"
Note: null
and sorting by another channel is not supported for row
and column
.
See also: sort
documentation.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Deserialize this value from the given Serde deserializer.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Serialize this value into the given Serde serializer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.