pub enum Unresolved {
MissingEvidence {
fields: Vec<String>,
},
StaleEvidence {
fields: Vec<String>,
},
InvalidInput {
fields: Vec<String>,
detail: String,
},
Abstained {
rule: String,
},
BackendUnavailable {
detail: String,
},
InvalidBackendOutput {
detail: String,
},
BudgetExhausted {
resource: String,
},
DeadlineExceeded,
Conflict {
facts: Vec<String>,
},
Unsupported {
capability: String,
},
InsufficientGrade {
fields: Vec<String>,
},
ScreenUnavailable {
fields: Vec<String>,
},
}Expand description
The closed set of unresolved reasons (spec 002, 3.5.6). Field and fact lists are sorted and deduplicated.
Variants§
MissingEvidence
StaleEvidence
InvalidInput
Abstained
InvalidBackendOutput
BudgetExhausted
DeadlineExceeded
Conflict
Unsupported
InsufficientGrade
A read whose value is below a required grade (spec 032, 3.9.4).
Unscreened fields a model step would read (spec 035, 3.9.1).
Implementations§
Source§impl Unresolved
impl Unresolved
pub fn kind(&self) -> ReasonKind
Sourcepub fn missing<I: IntoIterator<Item = String>>(fields: I) -> Self
pub fn missing<I: IntoIterator<Item = String>>(fields: I) -> Self
missing_evidence with sorted, deduplicated fields.
Sourcepub fn stale<I: IntoIterator<Item = String>>(fields: I) -> Self
pub fn stale<I: IntoIterator<Item = String>>(fields: I) -> Self
stale_evidence with sorted, deduplicated fields.
Sourcepub fn invalid<I: IntoIterator<Item = String>>(
fields: I,
detail: impl Into<String>,
) -> Self
pub fn invalid<I: IntoIterator<Item = String>>( fields: I, detail: impl Into<String>, ) -> Self
invalid_input with sorted, deduplicated fields.
Sourcepub fn insufficient<I: IntoIterator<Item = String>>(fields: I) -> Self
pub fn insufficient<I: IntoIterator<Item = String>>(fields: I) -> Self
insufficient_grade with sorted, deduplicated fields.
screen_unavailable with sorted, deduplicated field references.
Sourcepub fn conflict<I: IntoIterator<Item = String>>(facts: I) -> Self
pub fn conflict<I: IntoIterator<Item = String>>(facts: I) -> Self
conflict with sorted, deduplicated facts.
Trait Implementations§
Source§impl Clone for Unresolved
impl Clone for Unresolved
Source§impl Debug for Unresolved
impl Debug for Unresolved
Source§impl<'de> Deserialize<'de> for Unresolved
impl<'de> Deserialize<'de> for Unresolved
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 Display for Unresolved
impl Display for Unresolved
impl Eq for Unresolved
Source§impl Hash for Unresolved
impl Hash for Unresolved
Source§impl JsonSchema for Unresolved
impl JsonSchema for Unresolved
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 Ord for Unresolved
impl Ord for Unresolved
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Unresolved
impl PartialEq for Unresolved
Source§impl PartialOrd for Unresolved
impl PartialOrd for Unresolved
Source§impl Serialize for Unresolved
impl Serialize for Unresolved
impl StructuralPartialEq for Unresolved
Auto Trait Implementations§
impl Freeze for Unresolved
impl RefUnwindSafe for Unresolved
impl Send for Unresolved
impl Sync for Unresolved
impl Unpin for Unresolved
impl UnsafeUnpin for Unresolved
impl UnwindSafe for Unresolved
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