pub struct SummaryTier {
pub scheme: SummaryScheme,
pub min_zoom: u8,
pub max_zoom: u8,
pub cell_resolution_per_zoom: Vec<u8>,
pub columns: Vec<SummaryColumn>,
pub layer_name: String,
pub sub_buckets: u32,
}Expand description
Description of the optional pre-aggregated summary tier.
Fields§
§scheme: SummaryScheme§min_zoom: u8§max_zoom: u8§cell_resolution_per_zoom: Vec<u8>§columns: Vec<SummaryColumn>§layer_name: String§sub_buckets: u32Number of fine-grained sub-buckets per outer time-bucket emitted
at build time. 1 (or absent) = legacy single-count behaviour.
When > 1, each cell row carries N additional numeric columns named
bucket_0..bucket_<N-1> and the renderer animates inside a tile
by switching which column drives the per-cell colour — zero data
re-upload between frames.
Implementations§
Source§impl SummaryTier
impl SummaryTier
Sourcepub fn resolution_for_zoom(&self, zoom: u8) -> u8
pub fn resolution_for_zoom(&self, zoom: u8) -> u8
Resolution to use at a given zoom. Falls back to the closest mapped
resolution if the zoom is outside [min_zoom, max_zoom].
Trait Implementations§
Source§impl Clone for SummaryTier
impl Clone for SummaryTier
Source§fn clone(&self) -> SummaryTier
fn clone(&self) -> SummaryTier
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 SummaryTier
impl Debug for SummaryTier
Source§impl<'de> Deserialize<'de> for SummaryTier
impl<'de> Deserialize<'de> for SummaryTier
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 SummaryTier
impl RefUnwindSafe for SummaryTier
impl Send for SummaryTier
impl Sync for SummaryTier
impl Unpin for SummaryTier
impl UnsafeUnpin for SummaryTier
impl UnwindSafe for SummaryTier
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more