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
S2 TileJSON 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
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