pub struct ConditionalFormat {
pub range: String,
pub rules: Vec<ConditionalFormatRule>,
}Expand description
A conditional formatting rule for writing.
Fields§
§range: StringCell range the rule applies to (e.g., “A1:C10”).
rules: Vec<ConditionalFormatRule>The rules in this conditional format.
Implementations§
Source§impl ConditionalFormat
impl ConditionalFormat
Sourcepub fn add_cell_is_rule(
self,
operator: &str,
formula: impl Into<String>,
priority: u32,
dxf_id: Option<u32>,
) -> Self
pub fn add_cell_is_rule( self, operator: &str, formula: impl Into<String>, priority: u32, dxf_id: Option<u32>, ) -> Self
Add a cell value comparison rule.
Sourcepub fn add_expression_rule(
self,
formula: impl Into<String>,
priority: u32,
dxf_id: Option<u32>,
) -> Self
pub fn add_expression_rule( self, formula: impl Into<String>, priority: u32, dxf_id: Option<u32>, ) -> Self
Add a formula expression rule.
Sourcepub fn add_duplicate_values_rule(
self,
priority: u32,
dxf_id: Option<u32>,
) -> Self
pub fn add_duplicate_values_rule( self, priority: u32, dxf_id: Option<u32>, ) -> Self
Add a duplicate values rule.
Trait Implementations§
Source§impl Clone for ConditionalFormat
impl Clone for ConditionalFormat
Source§fn clone(&self) -> ConditionalFormat
fn clone(&self) -> ConditionalFormat
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 moreAuto Trait Implementations§
impl Freeze for ConditionalFormat
impl RefUnwindSafe for ConditionalFormat
impl Send for ConditionalFormat
impl Sync for ConditionalFormat
impl Unpin for ConditionalFormat
impl UnsafeUnpin for ConditionalFormat
impl UnwindSafe for ConditionalFormat
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