#[non_exhaustive]pub struct PieChartSortConfiguration {
pub category_sort: Option<Vec<FieldSortOptions>>,
pub category_items_limit: Option<ItemsLimitConfiguration>,
pub small_multiples_sort: Option<Vec<FieldSortOptions>>,
pub small_multiples_limit_configuration: Option<ItemsLimitConfiguration>,
}
Expand description
The sort configuration of a pie chart.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.category_sort: Option<Vec<FieldSortOptions>>
The sort configuration of the category fields.
category_items_limit: Option<ItemsLimitConfiguration>
The limit on the number of categories that are displayed in a pie chart.
small_multiples_sort: Option<Vec<FieldSortOptions>>
The sort configuration of the small multiples field.
small_multiples_limit_configuration: Option<ItemsLimitConfiguration>
The limit on the number of small multiples panels that are displayed.
Implementations§
source§impl PieChartSortConfiguration
impl PieChartSortConfiguration
sourcepub fn category_sort(&self) -> &[FieldSortOptions]
pub fn category_sort(&self) -> &[FieldSortOptions]
The sort configuration of the category fields.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .category_sort.is_none()
.
sourcepub fn category_items_limit(&self) -> Option<&ItemsLimitConfiguration>
pub fn category_items_limit(&self) -> Option<&ItemsLimitConfiguration>
The limit on the number of categories that are displayed in a pie chart.
sourcepub fn small_multiples_sort(&self) -> &[FieldSortOptions]
pub fn small_multiples_sort(&self) -> &[FieldSortOptions]
The sort configuration of the small multiples field.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .small_multiples_sort.is_none()
.
sourcepub fn small_multiples_limit_configuration(
&self
) -> Option<&ItemsLimitConfiguration>
pub fn small_multiples_limit_configuration( &self ) -> Option<&ItemsLimitConfiguration>
The limit on the number of small multiples panels that are displayed.
source§impl PieChartSortConfiguration
impl PieChartSortConfiguration
sourcepub fn builder() -> PieChartSortConfigurationBuilder
pub fn builder() -> PieChartSortConfigurationBuilder
Creates a new builder-style object to manufacture PieChartSortConfiguration
.
Trait Implementations§
source§impl Clone for PieChartSortConfiguration
impl Clone for PieChartSortConfiguration
source§fn clone(&self) -> PieChartSortConfiguration
fn clone(&self) -> PieChartSortConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PieChartSortConfiguration
impl Debug for PieChartSortConfiguration
source§impl PartialEq for PieChartSortConfiguration
impl PartialEq for PieChartSortConfiguration
source§fn eq(&self, other: &PieChartSortConfiguration) -> bool
fn eq(&self, other: &PieChartSortConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PieChartSortConfiguration
Auto Trait Implementations§
impl Freeze for PieChartSortConfiguration
impl RefUnwindSafe for PieChartSortConfiguration
impl Send for PieChartSortConfiguration
impl Sync for PieChartSortConfiguration
impl Unpin for PieChartSortConfiguration
impl UnwindSafe for PieChartSortConfiguration
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more