pub struct ScoreAnswer {
pub score: f64,
pub legend: HashMap<String, String>,
pub probabilities: HashMap<String, f64>,
pub confidence: f64,
}Expand description
legend is level-index (string) → level description.
probabilities is keyed by the same index strings. confidence required.
f64 for wire-format precision.
Fields§
§score: f64Inferred expected score value along the ordinal rubric.
legend: HashMap<String, String>Mapping of numeric level index strings ("0", "1", …) to rubric descriptions.
probabilities: HashMap<String, f64>Normalized probability distribution over the level indices summing to 1.0.
confidence: f64Model confidence score in [0.0, 1.0] derived from the probability distribution.
Trait Implementations§
Source§impl Clone for ScoreAnswer
impl Clone for ScoreAnswer
Source§impl Debug for ScoreAnswer
impl Debug for ScoreAnswer
Source§impl<'de> Deserialize<'de> for ScoreAnswer
impl<'de> Deserialize<'de> for ScoreAnswer
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 ScoreAnswer
impl JsonSchema for ScoreAnswer
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 moreSource§impl PartialEq for ScoreAnswer
impl PartialEq for ScoreAnswer
Source§impl Serialize for ScoreAnswer
impl Serialize for ScoreAnswer
impl StructuralPartialEq for ScoreAnswer
Auto Trait Implementations§
impl Freeze for ScoreAnswer
impl RefUnwindSafe for ScoreAnswer
impl Send for ScoreAnswer
impl Sync for ScoreAnswer
impl Unpin for ScoreAnswer
impl UnsafeUnpin for ScoreAnswer
impl UnwindSafe for ScoreAnswer
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