pub struct VectorLayerMeta {
pub id: String,
pub description: Option<String>,
pub min_zoom: Option<u8>,
pub max_zoom: Option<u8>,
}Expand description
Metadata for a single source layer inside a vector tile source.
Mirrors the vector_layers entry in TileJSON 3.0.
Fields§
§id: StringMachine-readable source-layer name (e.g. "water", "roads").
description: Option<String>Optional human-readable description.
min_zoom: Option<u8>Minimum zoom at which this layer appears.
max_zoom: Option<u8>Maximum zoom at which this layer appears.
Implementations§
Trait Implementations§
Source§impl Clone for VectorLayerMeta
impl Clone for VectorLayerMeta
Source§fn clone(&self) -> VectorLayerMeta
fn clone(&self) -> VectorLayerMeta
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 VectorLayerMeta
impl Debug for VectorLayerMeta
Source§impl PartialEq for VectorLayerMeta
impl PartialEq for VectorLayerMeta
impl StructuralPartialEq for VectorLayerMeta
Auto Trait Implementations§
impl Freeze for VectorLayerMeta
impl RefUnwindSafe for VectorLayerMeta
impl Send for VectorLayerMeta
impl Sync for VectorLayerMeta
impl Unpin for VectorLayerMeta
impl UnsafeUnpin for VectorLayerMeta
impl UnwindSafe for VectorLayerMeta
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