Struct google_sheets4::api::BandingProperties [−][src]
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)
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.
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.
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)
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
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for BandingProperties
impl Send for BandingProperties
impl Sync for BandingProperties
impl Unpin for BandingProperties
impl UnwindSafe for BandingProperties
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more