pub struct MapboxTileJSONMetadata {Show 17 fields
pub tilejson: String,
pub tiles: Vec<String>,
pub vector_layers: Vec<VectorLayer>,
pub attribution: Option<String>,
pub bounds: Option<BBox>,
pub center: Option<[f64; 3]>,
pub data: Option<Vec<String>>,
pub description: Option<String>,
pub fillzoom: Option<u8>,
pub grids: Option<Vec<String>>,
pub legend: Option<String>,
pub maxzoom: Option<u8>,
pub minzoom: Option<u8>,
pub name: Option<String>,
pub scheme: Option<Scheme>,
pub template: Option<String>,
pub version: Option<String>,
}Expand description
Fields§
§tilejson: StringVersion of the TileJSON spec used.
Matches the pattern: \d+\.\d+\.\d+\w?[\w\d]*.
tiles: Vec<String>Array of tile URL templates.
vector_layers: Vec<VectorLayer>Array of vector layer metadata.
attribution: Option<String>Attribution string.
bounds: Option<BBox>Bounding box array [west, south, east, north].
center: Option<[f64; 3]>Center coordinate array [longitude, latitude, zoom].
data: Option<Vec<String>>Array of data source URLs.
description: Option<String>Description string.
fillzoom: Option<u8>Fill zoom level. Must be between 0 and 30.
grids: Option<Vec<String>>Array of UTFGrid URL templates.
legend: Option<String>Legend of the tileset.
maxzoom: Option<u8>Maximum zoom level. Must be between 0 and 30.
minzoom: Option<u8>Minimum zoom level. Must be between 0 and 30.
name: Option<String>Name of the tileset.
scheme: Option<Scheme>Tile scheme, e.g., xyz or tms.
template: Option<String>Template for interactivity.
version: Option<String>Version of the tileset. Matches the pattern: \d+\.\d+\.\d+\w?[\w\d]*.
Implementations§
Source§impl MapboxTileJSONMetadata
impl MapboxTileJSONMetadata
Sourcepub fn to_metadata(&self) -> Metadata
pub fn to_metadata(&self) -> Metadata
Converts a MapboxTileJSONMetadata to a Metadata
Trait Implementations§
Source§impl Clone for MapboxTileJSONMetadata
impl Clone for MapboxTileJSONMetadata
Source§fn clone(&self) -> MapboxTileJSONMetadata
fn clone(&self) -> MapboxTileJSONMetadata
Returns a copy 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 MapboxTileJSONMetadata
impl Debug for MapboxTileJSONMetadata
Source§impl<'de> Deserialize<'de> for MapboxTileJSONMetadata
impl<'de> Deserialize<'de> for MapboxTileJSONMetadata
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 MapboxTileJSONMetadata
impl PartialEq for MapboxTileJSONMetadata
Source§impl Serialize for MapboxTileJSONMetadata
impl Serialize for MapboxTileJSONMetadata
impl StructuralPartialEq for MapboxTileJSONMetadata
Auto Trait Implementations§
impl Freeze for MapboxTileJSONMetadata
impl RefUnwindSafe for MapboxTileJSONMetadata
impl Send for MapboxTileJSONMetadata
impl Sync for MapboxTileJSONMetadata
impl Unpin for MapboxTileJSONMetadata
impl UnwindSafe for MapboxTileJSONMetadata
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