pub enum AbstentionDecision {
NotApplied,
LabelOnly,
Passed {
top_mass: f64,
margin: f64,
},
Abstained {
rule: AbstentionRule,
top_mass: f64,
margin: f64,
},
}Expand description
How the abstention policy was applied (3.5). Exact processing over model-derived masses; the thresholds are not calibration claims.
Variants§
NotApplied
LabelOnly
A label accepted under the request’s explicit label-only posture.
Passed
Abstained
Trait Implementations§
Source§impl Clone for AbstentionDecision
impl Clone for AbstentionDecision
Source§impl Debug for AbstentionDecision
impl Debug for AbstentionDecision
Source§impl<'de> Deserialize<'de> for AbstentionDecision
impl<'de> Deserialize<'de> for AbstentionDecision
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 AbstentionDecision
impl JsonSchema for AbstentionDecision
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 AbstentionDecision
impl PartialEq for AbstentionDecision
Source§impl Serialize for AbstentionDecision
impl Serialize for AbstentionDecision
impl StructuralPartialEq for AbstentionDecision
Auto Trait Implementations§
impl Freeze for AbstentionDecision
impl RefUnwindSafe for AbstentionDecision
impl Send for AbstentionDecision
impl Sync for AbstentionDecision
impl Unpin for AbstentionDecision
impl UnsafeUnpin for AbstentionDecision
impl UnwindSafe for AbstentionDecision
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