pub struct BandingProperties {
pub first_band_color: Option<Color>,
pub first_band_color_style: Option<ColorStyle>,
pub footer_color: Option<Color>,
pub footer_color_style: Option<ColorStyle>,
pub header_color: Option<Color>,
pub header_color_style: Option<ColorStyle>,
pub second_band_color: Option<Color>,
pub second_band_color_style: Option<ColorStyle>,
}
Expand description
Properties referring a single dimension (either row or column). If both BandedRange.row_properties and BandedRange.column_properties are set, the fill colors are applied to cells according to the following rules: * header_color and footer_color take priority over band colors. * first_band_color takes priority over second_band_color. * row_properties takes priority over column_properties. For example, the first row color takes priority over the first column color, but the first column color takes priority over the second row color. Similarly, the row header takes priority over the column header in the top left cell, but the column header takes priority over the first row color if the row header is not set.
This type is not used in any activity, and only used as part of another schema.
Fields§
§first_band_color: Option<Color>
The first color that is alternating. (Required) Deprecated: Use first_band_color_style.
first_band_color_style: Option<ColorStyle>
The first color that is alternating. (Required) If first_band_color is also set, this field takes precedence.
The color of the last row or column. If this field is not set, the last row or column is filled with either first_band_color or second_band_color, depending on the color of the previous row or column. Deprecated: Use footer_color_style.
The color of the last row or column. If this field is not set, the last row or column is filled with either first_band_color or second_band_color, depending on the color of the previous row or column. If footer_color is also set, this field takes precedence.
header_color: Option<Color>
The color of the first row or column. If this field is set, the first row or column is filled with this color and the colors alternate between first_band_color and second_band_color starting from the second row or column. Otherwise, the first row or column is filled with first_band_color and the colors proceed to alternate as they normally would. Deprecated: Use header_color_style.
header_color_style: Option<ColorStyle>
The color of the first row or column. If this field is set, the first row or column is filled with this color and the colors alternate between first_band_color and second_band_color starting from the second row or column. Otherwise, the first row or column is filled with first_band_color and the colors proceed to alternate as they normally would. If header_color is also set, this field takes precedence.
second_band_color: Option<Color>
The second color that is alternating. (Required) Deprecated: Use second_band_color_style.
second_band_color_style: Option<ColorStyle>
The second color that is alternating. (Required) If second_band_color is also set, this field takes precedence.
Trait Implementations§
Source§impl Clone for BandingProperties
impl Clone for BandingProperties
Source§fn clone(&self) -> BandingProperties
fn clone(&self) -> BandingProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BandingProperties
impl Debug for BandingProperties
Source§impl Default for BandingProperties
impl Default for BandingProperties
Source§fn default() -> BandingProperties
fn default() -> BandingProperties
Source§impl<'de> Deserialize<'de> for BandingProperties
impl<'de> Deserialize<'de> for BandingProperties
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>,
Source§impl Serialize for BandingProperties
impl Serialize for BandingProperties
impl Part for BandingProperties
Auto Trait Implementations§
impl Freeze for BandingProperties
impl RefUnwindSafe for BandingProperties
impl Send for BandingProperties
impl Sync for BandingProperties
impl Unpin for BandingProperties
impl UnwindSafe for BandingProperties
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more