Struct edit_xlsx::FormatFill
source · pub struct FormatFill {
pub pattern_type: String,
pub fg_color: FormatColor,
pub bg_color: FormatColor,
}Expand description
FormatFill is used for fields that having both foreground color and background color,
It’s mainly applied in the Row, Column and Cell’s Format fill color.
§Fields
| field | type | meaning |
|---|---|---|
pattern_type | String | The color filling method, the contents of which can be referred to the official documentation |
fg_color | FormatColor | The foreground color of filling |
bg_color | FormatColor | The background color of filling |
Fields§
§pattern_type: String§fg_color: FormatColor§bg_color: FormatColorTrait Implementations§
source§impl Clone for FormatFill
impl Clone for FormatFill
source§fn clone(&self) -> FormatFill
fn clone(&self) -> FormatFill
Returns a copy 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 FormatFill
impl Debug for FormatFill
source§impl Default for FormatFill
impl Default for FormatFill
source§fn default() -> Self
fn default() -> Self
Method FormatFill::default() creates a blank FormatFill with no foreground color,
a blank background color, and a none pattern_type.
When using Format::default(), its fill field will be filled by this method.
source§impl PartialEq for FormatFill
impl PartialEq for FormatFill
source§fn eq(&self, other: &FormatFill) -> bool
fn eq(&self, other: &FormatFill) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for FormatFill
Auto Trait Implementations§
impl Freeze for FormatFill
impl RefUnwindSafe for FormatFill
impl Send for FormatFill
impl Sync for FormatFill
impl Unpin for FormatFill
impl UnwindSafe for FormatFill
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