pub struct Card {Show 17 fields
pub schema: String,
pub title: String,
pub producer: Producer,
pub model: Option<Model>,
pub task: Option<Task>,
pub harness: Option<Harness>,
pub generation: Option<Generation>,
pub trial: Option<Trial>,
pub grading: Option<Grading>,
pub env: Option<Env>,
pub results: Vec<ResultEntry>,
pub counts: Option<Counts>,
pub relations: Vec<Relation>,
pub attachments: Vec<Attachment>,
pub redaction: Option<Redaction>,
pub provenance: Option<Provenance>,
pub ext: Ext,
}Expand description
A Card: what was measured, how, and what the score was.
Fields§
§schema: StringSchema identifier; must be evalhub.card/1.0.
title: StringHuman-readable title.
producer: ProducerThe software that wrote this record.
model: Option<Model>The model facet.
task: Option<Task>The task facet.
harness: Option<Harness>The harness facet.
generation: Option<Generation>The generation facet.
trial: Option<Trial>The trial facet.
grading: Option<Grading>The grading facet.
env: Option<Env>The environment facet.
results: Vec<ResultEntry>The scores.
counts: Option<Counts>Item counts the scores were computed over. Required when results is non-empty.
relations: Vec<Relation>Edges to other records.
attachments: Vec<Attachment>Files this record refers to.
redaction: Option<Redaction>What the producer removed before publishing.
provenance: Option<Provenance>Where the numbers came from and who ran the evaluation.
ext: ExtProducer-private extensions keyed by namespace.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Card
impl<'de> Deserialize<'de> for Card
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 JsonSchema for Card
impl JsonSchema for Card
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Card
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnsafeUnpin for Card
impl UnwindSafe for Card
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