pub struct Baseline {Show 18 fields
pub schema: String,
pub name: String,
pub repeat_report: ContentDigest,
pub runs: Vec<RunRef>,
pub dataset: DatasetId,
pub split: Split,
pub split_role: SplitRole,
pub provenance: DatasetProvenance,
pub evaluator_config: EvaluatorConfigId,
pub evaluator_config_version: String,
pub adapter_rules: Option<AdapterRules>,
pub repeat_config: ContentDigest,
pub plan: PlanId,
pub source: Source,
pub n: u64,
pub recorded_at_ms: i64,
pub held_out: Option<HeldOut>,
pub cohorts: Vec<BaselineCohort>,
}Fields§
§schema: String§name: String§repeat_report: ContentDigestThe record digest of the repeat report.
runs: Vec<RunRef>§dataset: DatasetId§split: Split§split_role: SplitRole§provenance: DatasetProvenanceA synthetic-provenance baseline stays labeled as such (3.8.2).
evaluator_config: EvaluatorConfigId§evaluator_config_version: StringThe evaluator configuration’s schema (/1 or /2).
adapter_rules: Option<AdapterRules>§repeat_config: ContentDigest§plan: PlanId§source: Source§n: u64§recorded_at_ms: i64Supplied by the host, never read from a clock.
held_out: Option<HeldOut>§cohorts: Vec<BaselineCohort>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Baseline
impl<'de> Deserialize<'de> for Baseline
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 Baseline
impl Document for Baseline
Source§const SCHEMA: &'static str = BASELINE
const SCHEMA: &'static str = BASELINE
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 StructuralPartialEq for Baseline
Auto Trait Implementations§
impl Freeze for Baseline
impl RefUnwindSafe for Baseline
impl Send for Baseline
impl Sync for Baseline
impl Unpin for Baseline
impl UnsafeUnpin for Baseline
impl UnwindSafe for Baseline
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