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.

footer_color: Option<Color>

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.

footer_color_style: Option<ColorStyle>

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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.