pub struct StyleFunction {
pub buckets: Option<Vec<Bucket>>,
pub column_name: Option<String>,
pub gradient: Option<StyleFunctionGradient>,
pub kind: Option<String>,
}
Expand description
Represents a StyleFunction within a StyleSetting
This type is not used in any activity, and only used as part of another schema.
Fields§
§buckets: Option<Vec<Bucket>>
Bucket function that assigns a style based on the range a column value falls into.
column_name: Option<String>
Name of the column whose value is used in the style.
gradient: Option<StyleFunctionGradient>
Gradient function that interpolates a range of colors based on column value.
kind: Option<String>
Stylers can be one of three kinds: “fusiontables#fromColumn if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; fusiontables#gradient if the styling of the row is to be based on applying the gradient function on the column value; or fusiontables#buckets if the styling is to based on the bucket into which the the column value falls.
Trait Implementations§
Source§impl Clone for StyleFunction
impl Clone for StyleFunction
Source§fn clone(&self) -> StyleFunction
fn clone(&self) -> StyleFunction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StyleFunction
impl Debug for StyleFunction
Source§impl Default for StyleFunction
impl Default for StyleFunction
Source§fn default() -> StyleFunction
fn default() -> StyleFunction
Source§impl<'de> Deserialize<'de> for StyleFunction
impl<'de> Deserialize<'de> for StyleFunction
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 Serialize for StyleFunction
impl Serialize for StyleFunction
impl Part for StyleFunction
Auto Trait Implementations§
impl Freeze for StyleFunction
impl RefUnwindSafe for StyleFunction
impl Send for StyleFunction
impl Sync for StyleFunction
impl Unpin for StyleFunction
impl UnwindSafe for StyleFunction
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,
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