Skip to main content

hanzo_client/models/
published_claim.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PublishedClaim {
16    /// Benchmark is the canonical test id the claim is about, from /catalog.
17    #[serde(rename = "benchmark", skip_serializing_if = "Option::is_none")]
18    pub benchmark: Option<String>,
19    /// Model is the system the score is claimed for.
20    #[serde(rename = "model", skip_serializing_if = "Option::is_none")]
21    pub model: Option<String>,
22    /// Protocol records HOW it was scored — provider-reported, agentic, third-party-leaderboard — because a provider card and a third party running its own harness are different kinds of number and must not be blended.
23    #[serde(rename = "protocol", skip_serializing_if = "Option::is_none")]
24    pub protocol: Option<String>,
25    /// Provider is who the claim belongs to — the lab or leaderboard whose number this is. It joins a claim to the attempts measured for that same model.
26    #[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
27    pub provider: Option<String>,
28    /// Score is the reported aggregate, as a percentage.
29    #[serde(rename = "score", skip_serializing_if = "Option::is_none")]
30    pub score: Option<f64>,
31    /// Source is the citation the row was read from. A claim without one is a number nobody can check, so every write requires it.
32    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
33    pub source: Option<String>,
34}
35
36impl PublishedClaim {
37    pub fn new() -> PublishedClaim {
38        PublishedClaim {
39            benchmark: None,
40            model: None,
41            protocol: None,
42            provider: None,
43            score: None,
44            source: None,
45        }
46    }
47}
48