pub struct RasterTileData {
pub tile_x: u32,
pub tile_y: u32,
pub zoom_level: u8,
pub image_format: RasterImageFormat,
pub tile_resolution: RasterTileResolution,
pub image_bytes: Vec<u8>,
}Expand description
One fetched web-mercator XYZ raster tile.
Fields§
§tile_x: u32Tile column coordinate at the given zoom level.
tile_y: u32Tile row coordinate at the given zoom level.
zoom_level: u8Zoom level this tile belongs to.
image_format: RasterImageFormatEncoding of the byte payload.
tile_resolution: RasterTileResolutionPixel resolution the payload was rendered at. Serialized payloads recorded before the field existed are all standard resolution, so the field defaults there on deserialization.
image_bytes: Vec<u8>Encoded image bytes.
Trait Implementations§
Source§impl Clone for RasterTileData
impl Clone for RasterTileData
Source§fn clone(&self) -> RasterTileData
fn clone(&self) -> RasterTileData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RasterTileData
impl Debug for RasterTileData
Source§impl<'de> Deserialize<'de> for RasterTileData
impl<'de> Deserialize<'de> for RasterTileData
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 Eq for RasterTileData
Source§impl PartialEq for RasterTileData
impl PartialEq for RasterTileData
Source§impl Serialize for RasterTileData
impl Serialize for RasterTileData
impl StructuralPartialEq for RasterTileData
Auto Trait Implementations§
impl Freeze for RasterTileData
impl RefUnwindSafe for RasterTileData
impl Send for RasterTileData
impl Sync for RasterTileData
impl Unpin for RasterTileData
impl UnsafeUnpin for RasterTileData
impl UnwindSafe for RasterTileData
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