pub enum ConditionalFormatType {
Show 17 variants
CellIs {
operator: CfOperator,
formula: String,
formula2: Option<String>,
},
Expression {
formula: String,
},
ColorScale {
min_type: CfValueType,
min_value: Option<String>,
min_color: String,
mid_type: Option<CfValueType>,
mid_value: Option<String>,
mid_color: Option<String>,
max_type: CfValueType,
max_value: Option<String>,
max_color: String,
},
DataBar {
min_type: CfValueType,
min_value: Option<String>,
max_type: CfValueType,
max_value: Option<String>,
color: String,
show_value: bool,
},
DuplicateValues,
UniqueValues,
Top10 {
rank: u32,
percent: bool,
},
Bottom10 {
rank: u32,
percent: bool,
},
AboveAverage {
above: bool,
equal_average: bool,
},
ContainsBlanks,
NotContainsBlanks,
ContainsErrors,
NotContainsErrors,
ContainsText {
text: String,
},
NotContainsText {
text: String,
},
BeginsWith {
text: String,
},
EndsWith {
text: String,
},
}Expand description
The type of conditional formatting rule.
Variants§
CellIs
Cell value comparison (e.g., greater than, between).
Fields
§
operator: CfOperatorExpression
Formula-based rule.
ColorScale
Color scale (2 or 3 color gradient).
DataBar
Data bar visualization.
DuplicateValues
Duplicate values.
UniqueValues
Unique values.
Top10
Top N values.
Bottom10
Bottom N values.
AboveAverage
Above or below average.
ContainsBlanks
Cells that contain blanks.
NotContainsBlanks
Cells that do not contain blanks.
ContainsErrors
Cells that contain errors.
NotContainsErrors
Cells that do not contain errors.
ContainsText
Cells containing specific text.
NotContainsText
Cells not containing specific text.
BeginsWith
Cells beginning with specific text.
EndsWith
Cells ending with specific text.
Trait Implementations§
Source§impl Clone for ConditionalFormatType
impl Clone for ConditionalFormatType
Source§fn clone(&self) -> ConditionalFormatType
fn clone(&self) -> ConditionalFormatType
Returns a duplicate 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 moreSource§impl Debug for ConditionalFormatType
impl Debug for ConditionalFormatType
Source§impl PartialEq for ConditionalFormatType
impl PartialEq for ConditionalFormatType
impl StructuralPartialEq for ConditionalFormatType
Auto Trait Implementations§
impl Freeze for ConditionalFormatType
impl RefUnwindSafe for ConditionalFormatType
impl Send for ConditionalFormatType
impl Sync for ConditionalFormatType
impl Unpin for ConditionalFormatType
impl UnwindSafe for ConditionalFormatType
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