pub struct StyleHints {
pub version: u32,
pub properties: Vec<PropertyStyleHint>,
pub suggested_playback_seconds: Option<u32>,
pub layer_hint: Option<String>,
}Expand description
Optional build-time “style hints” block: per-property statistics plus
archive-level rendering defaults, computed by the opt-in
stt-build --style-hints profiler so a fresh dataset renders sensibly
without hand-tuning.
Hints are DEFAULTS — a renderer or user can always override them. The whole block is additive: archives without it (and readers that don’t know it) are unaffected.
Fields§
§version: u32Style-hints block schema version. Currently 1.
properties: Vec<PropertyStyleHint>Per-property statistics (numeric percentiles or categorical
cardinality — see PropertyStyleHint).
suggested_playback_seconds: Option<u32>Suggested playback duration in seconds:
clamp(round(sqrt(bucket_count)), 20, 90) where bucket_count is the
time-range duration divided by temporal_bucket_ms. Absent when the
bucket size is unknown/zero.
layer_hint: Option<String>Dominant produced layer kind: one of "points", "paths", "trips",
or "polygons" (absent when no kind could be derived). Kept as a
string (not an enum) so a newer writer’s vocabulary can’t fail an
older reader’s decode.
Trait Implementations§
Source§impl Clone for StyleHints
impl Clone for StyleHints
Source§fn clone(&self) -> StyleHints
fn clone(&self) -> StyleHints
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StyleHints
impl Debug for StyleHints
Source§impl<'de> Deserialize<'de> for StyleHints
impl<'de> Deserialize<'de> for StyleHints
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>,
Source§impl PartialEq for StyleHints
impl PartialEq for StyleHints
Source§fn eq(&self, other: &StyleHints) -> bool
fn eq(&self, other: &StyleHints) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for StyleHints
impl Serialize for StyleHints
impl StructuralPartialEq for StyleHints
Auto Trait Implementations§
impl Freeze for StyleHints
impl RefUnwindSafe for StyleHints
impl Send for StyleHints
impl Sync for StyleHints
impl Unpin for StyleHints
impl UnsafeUnpin for StyleHints
impl UnwindSafe for StyleHints
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
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>
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>
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