pub enum DynamicAnswer {
Label {
label: String,
},
UncalibratedDistribution {
label: String,
masses: Vec<LabelMass>,
},
OrdinalDistribution {
level: String,
masses: Vec<LabelMass>,
},
}Expand description
What was proposed (3.6). A label is only a label; a distribution is uncalibrated mass, not a calibrated probability; an ordinal distribution is mass over ordered levels, not an interval score.
Variants§
Label
UncalibratedDistribution
label is the top label; ties go to the earlier declared label.
OrdinalDistribution
level is the top level; ties go to the lower level.
Trait Implementations§
Source§impl Clone for DynamicAnswer
impl Clone for DynamicAnswer
Source§impl Debug for DynamicAnswer
impl Debug for DynamicAnswer
Source§impl<'de> Deserialize<'de> for DynamicAnswer
impl<'de> Deserialize<'de> for DynamicAnswer
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 DynamicAnswer
impl JsonSchema for DynamicAnswer
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 DynamicAnswer
impl PartialEq for DynamicAnswer
Source§impl Serialize for DynamicAnswer
impl Serialize for DynamicAnswer
impl StructuralPartialEq for DynamicAnswer
Auto Trait Implementations§
impl Freeze for DynamicAnswer
impl RefUnwindSafe for DynamicAnswer
impl Send for DynamicAnswer
impl Sync for DynamicAnswer
impl Unpin for DynamicAnswer
impl UnsafeUnpin for DynamicAnswer
impl UnwindSafe for DynamicAnswer
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