pub struct BandingProperties {
pub header_color_style: Option<ColorStyle>,
pub first_band_color_style: Option<ColorStyle>,
pub second_band_color_style: Option<ColorStyle>,
pub footer_color_style: Option<ColorStyle>,
}Expand description
The colors of one axis of a BandedRange — BandingProperties.
Only the modern *ColorStyle fields are modelled, matching
format-cells’s precedent verbatim: the API’s plain headerColor/
firstBandColor/secondBandColor/footerColor fields are deprecated
in favor of their *ColorStyle counterparts, which take precedence when
both are set, so the plain fields are never worth sending. Within each
ColorStyle, only the rgbColor arm is modelled — see ColorStyle’s
own doc comment.
Fields§
§header_color_style: Option<ColorStyle>The header row/column’s color, if distinct from the alternating bands.
first_band_color_style: Option<ColorStyle>The first band’s color.
second_band_color_style: Option<ColorStyle>The second (alternating) band’s color.
The footer row/column’s color, if distinct from the alternating bands.
Trait Implementations§
Source§impl Clone for BandingProperties
impl Clone for BandingProperties
Source§impl Debug for BandingProperties
impl Debug for BandingProperties
Source§impl Default for BandingProperties
impl Default for 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BandingProperties
impl PartialEq for BandingProperties
Source§impl Serialize for BandingProperties
impl Serialize for BandingProperties
impl StructuralPartialEq 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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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