Skip to main content

CfRule

Enum CfRule 

Source
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).

Fields

§formula: String
§style: Box<Style>
§

ContainsText

Fields

§text: String
§style: Box<Style>
§

NotContainsText

Fields

§text: String
§style: Box<Style>
§

BeginsWith

Fields

§text: String
§style: Box<Style>
§

EndsWith

Fields

§text: String
§style: Box<Style>
§

Blanks

Fields

§style: Box<Style>
§

NoBlanks

Fields

§style: Box<Style>
§

Errors

Fields

§style: Box<Style>
§

NoErrors

Fields

§style: Box<Style>
§

Duplicate

Fields

§style: Box<Style>
§

Unique

Fields

§style: Box<Style>
§

Top10

Top/bottom N or N percent.

Fields

§bottom: bool
§percent: bool
§rank: u32
§style: Box<Style>
§

AboveAverage

Fields

§below: bool
§equal: bool
§std_dev: u8
§style: Box<Style>
§

TimePeriod

yesterday, today, tomorrow, last7Days, lastWeek, thisWeek, nextWeek, lastMonth, thisMonth, nextMonth.

Fields

§period: String
§style: Box<Style>
§

ColorScale

Fields

§

DataBar

Fields

§color: Color
§gradient: bool
§show_value: bool
§

IconSet

Icon set name (3Arrows, 3TrafficLights1, 4Rating, 5Quarters…).

Fields

§thresholds: Vec<CfValueKind>
§reverse: bool
§show_value: bool

Trait Implementations§

Source§

impl Clone for CfRule

Source§

fn clone(&self) -> CfRule

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CfRule

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CfRule

Source§

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 CfRule

Source§

fn eq(&self, other: &CfRule) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CfRule

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CfRule

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.