pub struct CellStyle {
pub font_color: Option<String>,
pub bg_color: Option<String>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underline: Option<bool>,
pub font_family: Option<String>,
pub font_size: Option<f64>,
pub num_format: Option<String>,
}Expand description
Cell formatting style attributes (font color, background color, font styles, font family, font size)
Fields§
§font_color: Option<String>Font color as Hex (e.g. “#FF0000” or “FF0000”) or standard color name (“red”, “blue”, etc.)
bg_color: Option<String>Background fill color as Hex or color name
bold: Option<bool>Bold text style flag
italic: Option<bool>Italic text style flag
underline: Option<bool>Underline text style flag
font_family: Option<String>Font family name (e.g. “Arial”, “Calibri”, “Courier New”)
font_size: Option<f64>Font size in points (e.g. 11, 12, 14.5)
num_format: Option<String>Excel number-format code (e.g. 0.00, 0.0"x", m/d/yy, yyyy-mm-dd)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellStyle
impl<'de> Deserialize<'de> for CellStyle
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
impl StructuralPartialEq for CellStyle
Auto Trait Implementations§
impl Freeze for CellStyle
impl RefUnwindSafe for CellStyle
impl Send for CellStyle
impl Sync for CellStyle
impl Unpin for CellStyle
impl UnsafeUnpin for CellStyle
impl UnwindSafe for CellStyle
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