#[non_exhaustive]pub struct AnalysisSettings {
pub pattern_locale: PatternLocale,
pub columns: ColumnSelection,
pub metric_packs: Option<Vec<MetricPack>>,
pub temporal_pairs: Option<Vec<TemporalPair>>,
}Expand description
The analysis settings a report was profiled with that change what its scores measure on unchanged data and are recorded nowhere else in it.
MetricSemantics records how a release defines its measurements; this
records what the caller chose. The score weights live in the quality
assessment and the semantic hints in the hint bindings, so they are not
repeated here. Later releases add fields, which older readers ignore, and a
field missing from a stored report means the release did not record it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pattern_locale: PatternLocaleThe locale detected patterns were ranked with, which the validity score reads.
columns: ColumnSelectionThe columns the run profiled. A dataset-level score has the column set as its subject, and a report without a column’s profile needs this to tell a column the source lacks from one that was not selected.
metric_packs: Option<Vec<MetricPack>>The metric packs the run computed, schema always among them, in a
fixed order: schema, statistics, patterns, quality. Without
patterns no column has detected patterns, so validity is not
assessed and the overall score averages the other dimensions; an
empty quality_dimensions selection drops quality. Absent from a
report written before 0.14, which did not record them.
temporal_pairs: Option<Vec<TemporalPair>>The start/end column pairs temporal_pairs declared, each once,
sorted by start then end. Timeliness counts a row whose start date
falls after its end date in a declared pair, so two runs that pair
the same columns differently score timeliness differently. The
calculator compares each pair once whatever order the list gives, so
the record keeps direction and drops order and repetition. Empty when
none were declared; absent from a report written before 0.14, which
recorded only the columns the pairs named.
Implementations§
Source§impl AnalysisSettings
impl AnalysisSettings
Sourcepub fn from_options(options: &AnalysisOptions) -> Self
pub fn from_options(options: &AnalysisOptions) -> Self
The settings options profile with.
Trait Implementations§
Source§impl Clone for AnalysisSettings
impl Clone for AnalysisSettings
Source§impl Debug for AnalysisSettings
impl Debug for AnalysisSettings
Source§impl<'de> Deserialize<'de> for AnalysisSettings
impl<'de> Deserialize<'de> for AnalysisSettings
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>,
impl Eq for AnalysisSettings
Source§impl JsonSchema for AnalysisSettings
impl JsonSchema for AnalysisSettings
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for AnalysisSettings
impl PartialEq for AnalysisSettings
Source§impl Serialize for AnalysisSettings
impl Serialize for AnalysisSettings
impl StructuralPartialEq for AnalysisSettings
Auto Trait Implementations§
impl Forget for AnalysisSettings
impl Freeze for AnalysisSettings
impl Move for AnalysisSettings
impl RefUnwindSafe for AnalysisSettings
impl Send for AnalysisSettings
impl Sync for AnalysisSettings
impl Unpin for AnalysisSettings
impl UnsafeUnpin for AnalysisSettings
impl UnwindSafe for AnalysisSettings
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.