pub enum TileChange {
Added {
tile_id: u64,
z: u8,
x: u32,
y: u32,
new_bytes: usize,
},
Removed {
tile_id: u64,
z: u8,
x: u32,
y: u32,
old_bytes: usize,
},
Changed {
tile_id: u64,
z: u8,
x: u32,
y: u32,
old_bytes: usize,
new_bytes: usize,
},
}Expand description
A single per-tile change reported by diff_archives.
Every variant carries the PMTiles v3 tile_id along with the resolved
(z, x, y) coordinates and the relevant byte size(s). This is enough to
drive most downstream tooling (CDN purge lists, sync utilities, audit
logs) without requiring access to the original archives.
Variants§
Added
Tile present in the new archive but absent in the old archive.
Fields
Removed
Tile present in the old archive but absent in the new archive.
Fields
Changed
Tile present in both archives with different content.
Fields
Implementations§
Trait Implementations§
Source§impl Clone for TileChange
impl Clone for TileChange
Source§fn clone(&self) -> TileChange
fn clone(&self) -> TileChange
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 TileChange
impl Debug for TileChange
impl Eq for TileChange
Source§impl PartialEq for TileChange
impl PartialEq for TileChange
Source§fn eq(&self, other: &TileChange) -> bool
fn eq(&self, other: &TileChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TileChange
Auto Trait Implementations§
impl Freeze for TileChange
impl RefUnwindSafe for TileChange
impl Send for TileChange
impl Sync for TileChange
impl Unpin for TileChange
impl UnsafeUnpin for TileChange
impl UnwindSafe for TileChange
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