pub struct LayerMetaData {
pub description: Option<String>,
pub minzoom: u8,
pub maxzoom: u8,
pub draw_types: Vec<DrawType>,
pub shape: Shape,
pub m_shape: Option<Shape>,
}Expand description
Each layer has metadata associated with it. Defined as blueprints pre-construction of vector data.
Fields§
§description: Option<String>The description of the layer
minzoom: u8the lowest zoom level at which the layer is available
maxzoom: u8the highest zoom level at which the layer is available
draw_types: Vec<DrawType>The draw types that can be found in this layer
shape: ShapeThe shape that can be found in this layer
m_shape: Option<Shape>The shape used inside features that can be found in this layer
Trait Implementations§
Source§impl Clone for LayerMetaData
impl Clone for LayerMetaData
Source§fn clone(&self) -> LayerMetaData
fn clone(&self) -> LayerMetaData
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 LayerMetaData
impl Debug for LayerMetaData
Source§impl Default for LayerMetaData
impl Default for LayerMetaData
Source§fn default() -> LayerMetaData
fn default() -> LayerMetaData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayerMetaData
impl<'de> Deserialize<'de> for LayerMetaData
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 PartialEq for LayerMetaData
impl PartialEq for LayerMetaData
Source§impl Serialize for LayerMetaData
impl Serialize for LayerMetaData
impl StructuralPartialEq for LayerMetaData
Auto Trait Implementations§
impl Freeze for LayerMetaData
impl RefUnwindSafe for LayerMetaData
impl Send for LayerMetaData
impl Sync for LayerMetaData
impl Unpin for LayerMetaData
impl UnwindSafe for LayerMetaData
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