pub enum CfRuleInput {
Show 18 variants
ColorScale {
thresholds: Vec<ColorScaleThreshold>,
},
CellIs {
operator: ValueOperator,
formula: String,
formula2: Option<String>,
format: Dxf,
stop_if_true: bool,
},
Text {
operator: TextOperator,
value: String,
format: Dxf,
stop_if_true: bool,
},
Formula {
formula: String,
format: Dxf,
stop_if_true: bool,
},
TimePeriod {
time_period: PeriodType,
date1: Option<String>,
date2: Option<String>,
format: Dxf,
stop_if_true: bool,
},
DuplicateValues {
format: Dxf,
stop_if_true: bool,
},
UniqueValues {
format: Dxf,
stop_if_true: bool,
},
Blanks {
format: Dxf,
stop_if_true: bool,
},
NotBlanks {
format: Dxf,
stop_if_true: bool,
},
Errors {
format: Dxf,
stop_if_true: bool,
},
NoErrors {
format: Dxf,
stop_if_true: bool,
},
AboveAverage {
format: Dxf,
stop_if_true: bool,
},
BelowAverage {
format: Dxf,
stop_if_true: bool,
},
Top10 {
rank: u32,
percent: bool,
format: Dxf,
stop_if_true: bool,
},
Bottom10 {
rank: u32,
percent: bool,
format: Dxf,
stop_if_true: bool,
},
DataBar {
min: Option<Cfvo>,
max: Option<Cfvo>,
positive_color: Color,
negative_color: Color,
is_gradient: bool,
show_value: bool,
},
IconSet {
thresholds: Vec<IconThreshold>,
show_value: bool,
},
IconRating {
icon: Icon,
color: Color,
thresholds: Vec<(Cfvo, bool)>,
show_value: bool,
},
}Expand description
User-facing input type for creating or updating a CF rule.
Mirrors CfRule but dxf-based variants carry a Dxf format
instead of a dxf_id index. Non-dxf variants (ColorScale, DataBar,
IconSet, IconRating) are identical to their CfRule counterparts.
Variants§
ColorScale
Fields
§
thresholds: Vec<ColorScaleThreshold>CellIs
Fields
§
operator: ValueOperatorText
Formula
TimePeriod
Fields
§
time_period: PeriodTypeDuplicateValues
UniqueValues
Blanks
NotBlanks
Errors
NoErrors
AboveAverage
BelowAverage
Top10
Bottom10
DataBar
Fields
IconSet
IconRating
Trait Implementations§
Source§impl Clone for CfRuleInput
impl Clone for CfRuleInput
Source§fn clone(&self) -> CfRuleInput
fn clone(&self) -> CfRuleInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CfRuleInput
impl Debug for CfRuleInput
Source§impl<'de> Deserialize<'de> for CfRuleInput
impl<'de> Deserialize<'de> for CfRuleInput
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
Source§impl PartialEq for CfRuleInput
impl PartialEq for CfRuleInput
Source§fn eq(&self, other: &CfRuleInput) -> bool
fn eq(&self, other: &CfRuleInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CfRuleInput
impl Serialize for CfRuleInput
impl StructuralPartialEq for CfRuleInput
Auto Trait Implementations§
impl Freeze for CfRuleInput
impl RefUnwindSafe for CfRuleInput
impl Send for CfRuleInput
impl Sync for CfRuleInput
impl Unpin for CfRuleInput
impl UnsafeUnpin for CfRuleInput
impl UnwindSafe for CfRuleInput
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