pub enum CfRule {
Show 18 variants
CellIs {
op: CfOperator,
a: String,
b: Option<String>,
style: Box<Style>,
},
Expression {
formula: String,
style: Box<Style>,
},
ContainsText {
text: String,
style: Box<Style>,
},
NotContainsText {
text: String,
style: Box<Style>,
},
BeginsWith {
text: String,
style: Box<Style>,
},
EndsWith {
text: String,
style: Box<Style>,
},
Blanks {
style: Box<Style>,
},
NoBlanks {
style: Box<Style>,
},
Errors {
style: Box<Style>,
},
NoErrors {
style: Box<Style>,
},
Duplicate {
style: Box<Style>,
},
Unique {
style: Box<Style>,
},
Top10 {
bottom: bool,
percent: bool,
rank: u32,
style: Box<Style>,
},
AboveAverage {
below: bool,
equal: bool,
std_dev: u8,
style: Box<Style>,
},
TimePeriod {
period: String,
style: Box<Style>,
},
ColorScale {
stops: Vec<(CfValueKind, Color)>,
},
DataBar {
min: CfValueKind,
max: CfValueKind,
color: Color,
gradient: bool,
show_value: bool,
},
IconSet {
set: String,
thresholds: Vec<CfValueKind>,
reverse: bool,
show_value: bool,
},
}Variants§
CellIs
Cell value compared with one or two formulas.
Expression
Custom formula (relative to the top-left cell of the range).
ContainsText
NotContainsText
BeginsWith
EndsWith
Blanks
NoBlanks
Errors
NoErrors
Duplicate
Unique
Top10
Top/bottom N or N percent.
AboveAverage
TimePeriod
yesterday, today, tomorrow, last7Days, lastWeek, thisWeek, nextWeek, lastMonth, thisMonth, nextMonth.
ColorScale
Fields
§
stops: Vec<(CfValueKind, Color)>DataBar
IconSet
Icon set name (3Arrows, 3TrafficLights1, 4Rating, 5Quarters…).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CfRule
impl<'de> Deserialize<'de> for CfRule
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CfRule
Auto Trait Implementations§
impl Freeze for CfRule
impl RefUnwindSafe for CfRule
impl Send for CfRule
impl Sync for CfRule
impl Unpin for CfRule
impl UnsafeUnpin for CfRule
impl UnwindSafe for CfRule
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