pub struct InterpolationPoint {
pub color_style: ColorStyle,
pub point_type: String,
pub value: Option<String>,
}Expand description
One color/anchor pair of a GradientRule — InterpolationPoint.
Fields§
§color_style: ColorStyleThe color at this point. The API’s deprecated plain color field,
which Sheets still echoes back alongside it, is ignored.
point_type: StringOne of Sheets’ MIN/MAX/NUMBER/PERCENT/PERCENTILE. A plain
string, the same tolerate-unmodelled stance as
BooleanCondition::condition_type — a rule read back with a type
this crate doesn’t build still round-trips. Defaulted defensively
like that field — see the module doc on proto3 zero-value omission
(issue #1929).
value: Option<String>The threshold value, untouched — Sheets parses it at evaluation
time, the same trust-the-caller stance the rest of this module
takes. Absent for a MIN/MAX point, which has none.
Trait Implementations§
Source§impl Clone for InterpolationPoint
impl Clone for InterpolationPoint
Source§impl Debug for InterpolationPoint
impl Debug for InterpolationPoint
Source§impl Default for InterpolationPoint
impl Default for InterpolationPoint
Source§impl<'de> Deserialize<'de> for InterpolationPoint
impl<'de> Deserialize<'de> for InterpolationPoint
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 InterpolationPoint
impl PartialEq for InterpolationPoint
Source§impl Serialize for InterpolationPoint
impl Serialize for InterpolationPoint
impl StructuralPartialEq for InterpolationPoint
Auto Trait Implementations§
impl Freeze for InterpolationPoint
impl RefUnwindSafe for InterpolationPoint
impl Send for InterpolationPoint
impl Sync for InterpolationPoint
impl Unpin for InterpolationPoint
impl UnsafeUnpin for InterpolationPoint
impl UnwindSafe for InterpolationPoint
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