pub struct RepeatConfig {
pub schema: String,
pub bootstrap: BootstrapSpec,
pub noise: Noise,
pub slices: Vec<SliceSpec>,
pub stability_metrics: Vec<String>,
pub top_k: Option<TopK>,
}Fields§
§schema: String§bootstrap: BootstrapSpec§noise: Noise§slices: Vec<SliceSpec>§stability_metrics: Vec<String>§top_k: Option<TopK>Implementations§
Source§impl RepeatConfig
impl RepeatConfig
Sourcepub fn band_for(&self, metric: &str) -> (&BandRule, Decimal)
pub fn band_for(&self, metric: &str) -> (&BandRule, Decimal)
The rule and floor for metric: its override when declared.
Sourcepub fn level_units(&self) -> i128
pub fn level_units(&self) -> i128
The level’s Decimal units (level times 10^9), used by the exact percentile ranks (3.4.7).
Sourcepub fn check(&self) -> Result<(), ConfigError>
pub fn check(&self) -> Result<(), ConfigError>
Every rule of 3.3.1 that the document alone decides.
Sourcepub fn check_metrics(
&self,
reported: &BTreeSet<String>,
) -> Result<(), ConfigError>
pub fn check_metrics( &self, reported: &BTreeSet<String>, ) -> Result<(), ConfigError>
The rule that needs the evaluator configuration: every stability metric and every override names a metric that is reported (the configuration’s metrics and series, and those 3.2.5 derives).
Trait Implementations§
Source§impl Clone for RepeatConfig
impl Clone for RepeatConfig
Source§impl Debug for RepeatConfig
impl Debug for RepeatConfig
Source§impl<'de> Deserialize<'de> for RepeatConfig
impl<'de> Deserialize<'de> for RepeatConfig
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
Source§impl Document for RepeatConfig
impl Document for RepeatConfig
Source§const SCHEMA: &'static str = REPEAT_CONFIG
const SCHEMA: &'static str = REPEAT_CONFIG
The schema string this document carries (spec 002, 3.2.1).
Source§const LIMITS: ParseLimits = REPLAY_V1
const LIMITS: ParseLimits = REPLAY_V1
The limit set its bytes are scanned against (spec 002, 3.2.5).
Source§fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
Scan, deserialize and check the schema string.
Source§fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
The record canonical bytes (spec 004, 5.6): the canonical bytes, with
finite fractional numbers written in shortest round-trip form.
Source§fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
sha256(SCHEMA || 0x00 || record canonical bytes) (spec 004, 3.1.6).
Equal to the identity of an identified document.impl Eq for RepeatConfig
Source§impl Identified for RepeatConfig
impl Identified for RepeatConfig
type Id = ContentDigest
Source§impl PartialEq for RepeatConfig
impl PartialEq for RepeatConfig
Source§impl Serialize for RepeatConfig
impl Serialize for RepeatConfig
impl StructuralPartialEq for RepeatConfig
Auto Trait Implementations§
impl Freeze for RepeatConfig
impl RefUnwindSafe for RepeatConfig
impl Send for RepeatConfig
impl Sync for RepeatConfig
impl Unpin for RepeatConfig
impl UnsafeUnpin for RepeatConfig
impl UnwindSafe for RepeatConfig
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