pub enum FormatColor {
Default,
Index(u8),
Theme(u8, f64),
RGB(u8, u8, u8),
}
Expand description
FormatColor
is mainly used for setting fonts, backgrounds, and sheet tab colors.
§Fields:
unit | fields | meaning |
---|---|---|
Default | Default, no color | |
Index | index_id: u8, | Using the colorIndex property,index_id : color index id. |
Theme | theme_id: u8, tint: f64 | Use the Theme color format, i.e. leave the color decision to the current theme of xlsx. You can determine the theme color id and tint by theme_id and tint |
RGB | red: u8, green: u8, blue: u8, | Using the RGB color format. |
Variants§
Default
Default, no color
Index(u8)
Using the colorIndex property,
index_id
: color index id.
Theme(u8, f64)
Use the Theme color format, i.e. leave the color decision to the current theme of xlsx.
You can determine the theme color id and tint by theme_id
and tint
RGB(u8, u8, u8)
Using the RGB color format.
Trait Implementations§
Source§impl Clone for FormatColor
impl Clone for FormatColor
Source§fn clone(&self) -> FormatColor
fn clone(&self) -> FormatColor
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 moreSource§impl Debug for FormatColor
impl Debug for FormatColor
Source§impl Default for FormatColor
impl Default for FormatColor
Source§impl PartialEq for FormatColor
impl PartialEq for FormatColor
impl Copy for FormatColor
impl StructuralPartialEq for FormatColor
Auto Trait Implementations§
impl Freeze for FormatColor
impl RefUnwindSafe for FormatColor
impl Send for FormatColor
impl Sync for FormatColor
impl Unpin for FormatColor
impl UnwindSafe for FormatColor
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