Struct s2_tilejson::Metadata
source · pub struct Metadata {Show 18 fields
pub s2tilejson: String,
pub version: String,
pub name: String,
pub scheme: Scheme,
pub description: String,
pub type_: SourceType,
pub extension: String,
pub encoding: Encoding,
pub faces: Vec<Face>,
pub bounds: WMBounds,
pub facesbounds: FaceBounds,
pub minzoom: u8,
pub maxzoom: u8,
pub center: Center,
pub attribution: Attribution,
pub layers: LayersMetaData,
pub tilestats: TileStatsMetadata,
pub vector_layers: Vec<VectorLayer>,
}Expand description
Metadata for the tile data
Fields§
§s2tilejson: StringThe version of the s2-tilejson spec
version: StringThe version of the data
name: StringThe name of the data
scheme: SchemeThe scheme of the data
description: StringThe description of the data
type_: SourceTypeThe type of the data
extension: StringThe extension to use when requesting a tile
encoding: EncodingThe encoding of the data
faces: Vec<Face>List of faces that have data
bounds: WMBoundsWM Tile fetching bounds. Helpful to not make unecessary requests for tiles we know don’t exist
facesbounds: FaceBoundsS2 Tile fetching bounds. Helpful to not make unecessary requests for tiles we know don’t exist
minzoom: u8minzoom at which to request tiles. [default=0]
maxzoom: u8maxzoom at which to request tiles. [default=27]
center: CenterThe center of the data
attribution: Attribution{ [‘human readable string’]: ‘href’ }
layers: LayersMetaDataTrack layer metadata
tilestats: TileStatsMetadataTrack tile stats for each face and total overall
vector_layers: Vec<VectorLayer>Old spec, track basic layer metadata
Trait Implementations§
source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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 Metadata
impl PartialEq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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)