pub struct ConditionalFormattingView {
pub index: usize,
pub range: String,
pub cf_rule: CfRule,
pub priority: u32,
}Expand description
A conditional formatting rule together with its storage index in the
worksheet’s conditional_formatting vector.
get_conditional_formatting_list returns rules sorted by priority, which
loses the link to the storage index that the index-based mutators
(get_dxf_for_conditional_formatting, update_conditional_formatting,
delete_conditional_formatting, raise/lower_conditional_formatting_priority)
require. Carrying index here lets callers address a rule unambiguously
regardless of the display ordering. This type is transient (never persisted).
Fields§
§index: usize§range: String§cf_rule: CfRule§priority: u32Trait Implementations§
Source§impl Clone for ConditionalFormattingView
impl Clone for ConditionalFormattingView
Source§fn clone(&self) -> ConditionalFormattingView
fn clone(&self) -> ConditionalFormattingView
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 ConditionalFormattingView
impl Debug for ConditionalFormattingView
Source§impl<'de> Deserialize<'de> for ConditionalFormattingView
impl<'de> Deserialize<'de> for ConditionalFormattingView
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 ConditionalFormattingView
impl PartialEq for ConditionalFormattingView
Source§fn eq(&self, other: &ConditionalFormattingView) -> bool
fn eq(&self, other: &ConditionalFormattingView) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConditionalFormattingView
Auto Trait Implementations§
impl Freeze for ConditionalFormattingView
impl RefUnwindSafe for ConditionalFormattingView
impl Send for ConditionalFormattingView
impl Sync for ConditionalFormattingView
impl Unpin for ConditionalFormattingView
impl UnsafeUnpin for ConditionalFormattingView
impl UnwindSafe for ConditionalFormattingView
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