pub struct BandedRange {
pub banded_range_id: Option<i64>,
pub range: Option<GridRange>,
pub row_properties: Option<BandingProperties>,
pub column_properties: Option<BandingProperties>,
}Expand description
A banded range — alternating row or column colors applied to a range (issue #1832, ADR-0082).
v1 sets at most one of row_properties/column_properties per
add-banding/update-banding call, selected by --axis; the API
itself allows both on the same range simultaneously (a checkerboard
effect), which this crate does not expose — a documented cut, not a
silent gap.
PartialEq-only, not Eq: embeds ColorStyle, which wraps the
f32-based Color — see Color’s own doc comment.
Fields§
§banded_range_id: Option<i64>The server-assigned stable id. Absent on an add-banding request
this crate is building; always present on one read back or on an
update-banding/delete-banding request.
range: Option<GridRange>The banded range.
row_properties: Option<BandingProperties>Row-banding colors, when banding alternates by row.
column_properties: Option<BandingProperties>Column-banding colors, when banding alternates by column.
Trait Implementations§
Source§impl Clone for BandedRange
impl Clone for BandedRange
Source§impl Debug for BandedRange
impl Debug for BandedRange
Source§impl Default for BandedRange
impl Default for BandedRange
Source§impl<'de> Deserialize<'de> for BandedRange
impl<'de> Deserialize<'de> for BandedRange
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 PartialEq for BandedRange
impl PartialEq for BandedRange
Source§impl Serialize for BandedRange
impl Serialize for BandedRange
impl StructuralPartialEq for BandedRange
Auto Trait Implementations§
impl Freeze for BandedRange
impl RefUnwindSafe for BandedRange
impl Send for BandedRange
impl Sync for BandedRange
impl Unpin for BandedRange
impl UnsafeUnpin for BandedRange
impl UnwindSafe for BandedRange
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,
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> ⓘ
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