pub struct PolygonStyle {
pub fill_color: Option<String>,
pub fill_color_styler: Option<StyleFunction>,
pub fill_opacity: Option<f64>,
pub stroke_color: Option<String>,
pub stroke_color_styler: Option<StyleFunction>,
pub stroke_opacity: Option<f64>,
pub stroke_weight: Option<i32>,
pub stroke_weight_styler: Option<StyleFunction>,
}
Expand description
Represents a PolygonStyle within a StyleSetting
This type is not used in any activity, and only used as part of another schema.
Fields§
§fill_color: Option<String>
Color of the interior of the polygon in #RRGGBB format.
fill_color_styler: Option<StyleFunction>
Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.
fill_opacity: Option<f64>
Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
stroke_color: Option<String>
Color of the polygon border in #RRGGBB format.
stroke_color_styler: Option<StyleFunction>
Column-value, gradient or buckets styler that is used to determine the border color and opacity.
stroke_opacity: Option<f64>
Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
stroke_weight: Option<i32>
Width of the polyon border in pixels.
stroke_weight_styler: Option<StyleFunction>
Column-value or bucket styler that is used to determine the width of the polygon border.
Trait Implementations§
Source§impl Clone for PolygonStyle
impl Clone for PolygonStyle
Source§fn clone(&self) -> PolygonStyle
fn clone(&self) -> PolygonStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PolygonStyle
impl Debug for PolygonStyle
Source§impl Default for PolygonStyle
impl Default for PolygonStyle
Source§fn default() -> PolygonStyle
fn default() -> PolygonStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolygonStyle
impl<'de> Deserialize<'de> for PolygonStyle
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 Serialize for PolygonStyle
impl Serialize for PolygonStyle
impl Part for PolygonStyle
Auto Trait Implementations§
impl Freeze for PolygonStyle
impl RefUnwindSafe for PolygonStyle
impl Send for PolygonStyle
impl Sync for PolygonStyle
impl Unpin for PolygonStyle
impl UnwindSafe for PolygonStyle
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,
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