pub enum DynamicUnresolved {
Refused {
refusal: DynamicRefusal,
},
BackendFailed {
class: FailureClass,
detail: String,
},
InvalidOutput {
detail: String,
},
ServedIdentityMismatch {
pinned: String,
served: Option<String>,
},
Abstained {
rule: AbstentionRule,
},
DeadlineExceeded,
Cancelled,
}Expand description
A named unresolved outcome (3.5). No neutral score, first label, majority label, empty distribution or provider confidence replaces it.
Variants§
Refused
Refused before dispatch.
Fields
§
refusal: DynamicRefusalBackendFailed
The adapter reported a failure; no second request follows.
InvalidOutput
The output is outside the declared labels, levels, kind or support, or not an answer at all.
ServedIdentityMismatch
The pinned served identity differs from the one served.
Abstained
Fields
§
rule: AbstentionRuleDeadlineExceeded
Cancelled
Implementations§
Trait Implementations§
Source§impl Clone for DynamicUnresolved
impl Clone for DynamicUnresolved
Source§impl Debug for DynamicUnresolved
impl Debug for DynamicUnresolved
Source§impl<'de> Deserialize<'de> for DynamicUnresolved
impl<'de> Deserialize<'de> for DynamicUnresolved
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
impl Eq for DynamicUnresolved
Source§impl JsonSchema for DynamicUnresolved
impl JsonSchema for DynamicUnresolved
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 DynamicUnresolved
impl PartialEq for DynamicUnresolved
Source§impl Serialize for DynamicUnresolved
impl Serialize for DynamicUnresolved
impl StructuralPartialEq for DynamicUnresolved
Auto Trait Implementations§
impl Freeze for DynamicUnresolved
impl RefUnwindSafe for DynamicUnresolved
impl Send for DynamicUnresolved
impl Sync for DynamicUnresolved
impl Unpin for DynamicUnresolved
impl UnsafeUnpin for DynamicUnresolved
impl UnwindSafe for DynamicUnresolved
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