pub struct Layer {
pub id: String,
pub layout: Option<Layout>,
pub maxzoom: Option<f64>,
pub minzoom: Option<f64>,
pub paint: Option<Paint>,
pub rendering_mode: Option<String>,
pub source: String,
pub source_layer: Option<String>,
pub type: String,
}
Fields§
§id: String
§layout: Option<Layout>
§maxzoom: Option<f64>
§minzoom: Option<f64>
§paint: Option<Paint>
§rendering_mode: Option<String>
§source: String
§source_layer: Option<String>
§type: String
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
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 Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)