pub struct StyleSetting {
pub kind: Option<String>,
pub marker_options: Option<PointStyle>,
pub name: Option<String>,
pub polygon_options: Option<PolygonStyle>,
pub polyline_options: Option<LineStyle>,
pub style_id: Option<i32>,
pub table_id: Option<String>,
}
Expand description
Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get style (response)
- insert style (request|response)
- patch style (request|response)
- update style (request|response)
Fields§
§kind: Option<String>
The kind of item this is. A StyleSetting contains the style definitions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions.
marker_options: Option<PointStyle>
Style definition for points in the table.
name: Option<String>
Optional name for the style setting.
polygon_options: Option<PolygonStyle>
Style definition for polygons in the table.
polyline_options: Option<LineStyle>
Style definition for lines in the table.
style_id: Option<i32>
Identifier for the style setting (unique only within tables).
table_id: Option<String>
Identifier for the table.
Trait Implementations§
Source§impl Clone for StyleSetting
impl Clone for StyleSetting
Source§fn clone(&self) -> StyleSetting
fn clone(&self) -> StyleSetting
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StyleSetting
impl Debug for StyleSetting
Source§impl Default for StyleSetting
impl Default for StyleSetting
Source§fn default() -> StyleSetting
fn default() -> StyleSetting
Source§impl<'de> Deserialize<'de> for StyleSetting
impl<'de> Deserialize<'de> for StyleSetting
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 StyleSetting
impl Serialize for StyleSetting
impl RequestValue for StyleSetting
impl ResponseResult for StyleSetting
Auto Trait Implementations§
impl Freeze for StyleSetting
impl RefUnwindSafe for StyleSetting
impl Send for StyleSetting
impl Sync for StyleSetting
impl Unpin for StyleSetting
impl UnwindSafe for StyleSetting
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