pub struct StyleSpecLayer {
pub id: String,
pub layer_type: StyleSpecLayerType,
pub source: Option<StyleSourceId>,
pub source_layer: Option<String>,
pub minzoom: Option<f32>,
pub maxzoom: Option<f32>,
pub layout: Map<String, Value>,
pub paint: Map<String, Value>,
}Expand description
Declarative layer entry.
Fields§
§id: StringStyle layer id.
layer_type: StyleSpecLayerTypeLayer type.
source: Option<StyleSourceId>Optional source id.
source_layer: Option<String>Optional source-layer id for vector-tile-like sources.
minzoom: Option<f32>Optional minimum zoom.
maxzoom: Option<f32>Optional maximum zoom.
layout: Map<String, Value>Layout properties.
paint: Map<String, Value>Paint properties.
Trait Implementations§
Source§impl Clone for StyleSpecLayer
impl Clone for StyleSpecLayer
Source§fn clone(&self) -> StyleSpecLayer
fn clone(&self) -> StyleSpecLayer
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 StyleSpecLayer
impl Debug for StyleSpecLayer
Source§impl<'de> Deserialize<'de> for StyleSpecLayer
impl<'de> Deserialize<'de> for StyleSpecLayer
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
Auto Trait Implementations§
impl Freeze for StyleSpecLayer
impl RefUnwindSafe for StyleSpecLayer
impl Send for StyleSpecLayer
impl Sync for StyleSpecLayer
impl Unpin for StyleSpecLayer
impl UnsafeUnpin for StyleSpecLayer
impl UnwindSafe for StyleSpecLayer
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