pub struct PropertyStyleHint {
pub name: String,
pub min: Option<f64>,
pub p50: Option<f64>,
pub p90: Option<f64>,
pub p95: Option<f64>,
pub p97: Option<f64>,
pub p99: Option<f64>,
pub max: Option<f64>,
pub suggested_domain: Option<[f64; 2]>,
pub cardinality: Option<u32>,
}Expand description
Build-time statistics + rendering defaults for ONE property column,
carried inside StyleHints.
Two shapes share this struct:
- numeric properties carry
min/p50/p90/p95/p97/p99/maxandsuggested_domain(cardinalityabsent); - categorical (string) properties carry ONLY
name+cardinality(the numeric fields are absent from the JSON, not null-filled).
Fields§
§name: StringProperty (tile column) name.
min: Option<f64>Minimum observed value (numeric only).
p50: Option<f64>50th percentile (numeric only).
p90: Option<f64>90th percentile (numeric only).
p95: Option<f64>95th percentile (numeric only).
p97: Option<f64>97th percentile (numeric only).
p99: Option<f64>99th percentile (numeric only).
max: Option<f64>Maximum observed value (numeric only).
suggested_domain: Option<[f64; 2]>Suggested render domain [min, p97], each endpoint rounded OUTWARD to
2 significant figures. p97 (not max) encodes the project’s manual
“domain clamps at ~p97” tuning convention — a single outlier must not
dim the whole ramp (numeric only).
cardinality: Option<u32>Distinct-value count (categorical only; the profiler caps it at 10 000 — “at least 10k” is already actionable for palette sizing).
Trait Implementations§
Source§impl Clone for PropertyStyleHint
impl Clone for PropertyStyleHint
Source§fn clone(&self) -> PropertyStyleHint
fn clone(&self) -> PropertyStyleHint
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 PropertyStyleHint
impl Debug for PropertyStyleHint
Source§impl Default for PropertyStyleHint
impl Default for PropertyStyleHint
Source§fn default() -> PropertyStyleHint
fn default() -> PropertyStyleHint
Source§impl<'de> Deserialize<'de> for PropertyStyleHint
impl<'de> Deserialize<'de> for PropertyStyleHint
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 PropertyStyleHint
impl PartialEq for PropertyStyleHint
Source§fn eq(&self, other: &PropertyStyleHint) -> bool
fn eq(&self, other: &PropertyStyleHint) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PropertyStyleHint
impl Serialize for PropertyStyleHint
impl StructuralPartialEq for PropertyStyleHint
Auto Trait Implementations§
impl Freeze for PropertyStyleHint
impl RefUnwindSafe for PropertyStyleHint
impl Send for PropertyStyleHint
impl Sync for PropertyStyleHint
impl Unpin for PropertyStyleHint
impl UnsafeUnpin for PropertyStyleHint
impl UnwindSafe for PropertyStyleHint
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