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<u16>,
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<u16>Font size in points (e.g. 11, 12, 14)
num_format: Option<String>Excel number-format code (e.g. m/d/yy, yyyy-mm-dd).
This is how a date cell remembers the notation it was written in: the
value stays a plain numeric serial, exactly as in Excel, and the format
governs only how it renders. See core::date.
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 Eq for CellStyle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.