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.