pub struct SortSpec {
pub background_color: Option<Color>,
pub background_color_style: Option<ColorStyle>,
pub data_source_column_reference: Option<DataSourceColumnReference>,
pub dimension_index: Option<i32>,
pub foreground_color: Option<Color>,
pub foreground_color_style: Option<ColorStyle>,
pub sort_order: Option<String>,
}
Expand description
A sort order associated with a specific column or row.
This type is not used in any activity, and only used as part of another schema.
Fields§
§background_color: Option<Color>
The background fill color to sort by; cells with this fill color are sorted to the top. Mutually exclusive with foreground_color. Deprecated: Use background_color_style.
background_color_style: Option<ColorStyle>
The background fill color to sort by; cells with this fill color are sorted to the top. Mutually exclusive with foreground_color, and must be an RGB-type color. If background_color is also set, this field takes precedence.
data_source_column_reference: Option<DataSourceColumnReference>
Reference to a data source column.
dimension_index: Option<i32>
The dimension the sort should be applied to.
foreground_color: Option<Color>
The foreground color to sort by; cells with this foreground color are sorted to the top. Mutually exclusive with background_color. Deprecated: Use foreground_color_style.
foreground_color_style: Option<ColorStyle>
The foreground color to sort by; cells with this foreground color are sorted to the top. Mutually exclusive with background_color, and must be an RGB-type color. If foreground_color is also set, this field takes precedence.
sort_order: Option<String>
The order data should be sorted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SortSpec
impl<'de> Deserialize<'de> for SortSpec
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>,
impl Part for SortSpec
Auto Trait Implementations§
impl Freeze for SortSpec
impl RefUnwindSafe for SortSpec
impl Send for SortSpec
impl Sync for SortSpec
impl Unpin for SortSpec
impl UnwindSafe for SortSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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