pub struct LevelMetadataResponse {
pub level: usize,
pub width: u32,
pub height: u32,
pub tile_width: u32,
pub tile_height: u32,
pub tiles_x: u32,
pub tiles_y: u32,
pub downsample: f64,
}Expand description
Metadata for a single pyramid level.
Fields§
§level: usizePyramid level index (0 = highest resolution)
width: u32Width of this level in pixels
height: u32Height of this level in pixels
tile_width: u32Width of each tile in pixels
tile_height: u32Height of each tile in pixels
tiles_x: u32Number of tiles in X direction
tiles_y: u32Number of tiles in Y direction
downsample: f64Downsample factor relative to level 0
Trait Implementations§
Source§impl Debug for LevelMetadataResponse
impl Debug for LevelMetadataResponse
Auto Trait Implementations§
impl Freeze for LevelMetadataResponse
impl RefUnwindSafe for LevelMetadataResponse
impl Send for LevelMetadataResponse
impl Sync for LevelMetadataResponse
impl Unpin for LevelMetadataResponse
impl UnwindSafe for LevelMetadataResponse
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.