pub struct TilePayload {
pub z: u8,
pub x: u32,
pub y: u32,
pub data: Vec<u8>,
pub format: String,
pub delta: Option<Vec<u8>>,
}Expand description
Tile payload
Fields§
§z: u8Tile Z coordinate (zoom level)
x: u32Tile X coordinate
y: u32Tile Y coordinate
data: Vec<u8>Tile data
format: StringTile format (e.g., “png”, “webp”, “mvt”)
delta: Option<Vec<u8>>Optional delta encoding (if incremental update)
Trait Implementations§
Source§impl Clone for TilePayload
impl Clone for TilePayload
Source§fn clone(&self) -> TilePayload
fn clone(&self) -> TilePayload
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 TilePayload
impl Debug for TilePayload
Source§impl<'de> Deserialize<'de> for TilePayload
impl<'de> Deserialize<'de> for TilePayload
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
Auto Trait Implementations§
impl Freeze for TilePayload
impl RefUnwindSafe for TilePayload
impl Send for TilePayload
impl Sync for TilePayload
impl Unpin for TilePayload
impl UnsafeUnpin for TilePayload
impl UnwindSafe for TilePayload
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