pub struct FormattingRule {
pub condition: String,
pub style: Style,
}Expand description
Formatting applied when a condition holds.
Fields§
§condition: StringA boolean expression, such as [Total] > 1000.
style: StyleThe settings applied.
Trait Implementations§
Source§impl Clone for FormattingRule
impl Clone for FormattingRule
Source§fn clone(&self) -> FormattingRule
fn clone(&self) -> FormattingRule
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 FormattingRule
impl Debug for FormattingRule
Source§impl Default for FormattingRule
impl Default for FormattingRule
Source§fn default() -> FormattingRule
fn default() -> FormattingRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FormattingRulewhere
FormattingRule: Default,
impl<'de> Deserialize<'de> for FormattingRulewhere
FormattingRule: Default,
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 FormattingRule
impl PartialEq for FormattingRule
Source§impl Serialize for FormattingRule
impl Serialize for FormattingRule
impl StructuralPartialEq for FormattingRule
Auto Trait Implementations§
impl Freeze for FormattingRule
impl RefUnwindSafe for FormattingRule
impl Send for FormattingRule
impl Sync for FormattingRule
impl Unpin for FormattingRule
impl UnsafeUnpin for FormattingRule
impl UnwindSafe for FormattingRule
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