#[non_exhaustive]pub enum ReasoningModelError {
EmptyValue {
field: &'static str,
},
ConfidenceOutOfRange(u16),
ProbabilityOutOfRange(u32),
UndefinedPosterior,
EmptyDerivationParents,
TooManyDerivationParents {
count: usize,
max: usize,
},
DerivationAlgorithmTooLong {
len: usize,
max: usize,
},
}Expand description
Validation errors for decision-engine domain contracts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyValue
A required identifier or name was empty.
ConfidenceOutOfRange(u16)
A confidence score exceeded the inclusive 0..=10_000 range.
ProbabilityOutOfRange(u32)
A probability exceeded the inclusive 0..=1_000_000 range.
UndefinedPosterior
Bayes’ theorem had a zero denominator for the supplied observation.
EmptyDerivationParents
Derived evidence declared no parent record.
TooManyDerivationParents
Derived evidence referenced more parents than the compiled bound allows.
Fields
DerivationAlgorithmTooLong
A derivation algorithm identifier exceeded the compiled byte bound.
Trait Implementations§
Source§impl Clone for ReasoningModelError
impl Clone for ReasoningModelError
Source§fn clone(&self) -> ReasoningModelError
fn clone(&self) -> ReasoningModelError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReasoningModelError
impl Debug for ReasoningModelError
Source§impl Display for ReasoningModelError
impl Display for ReasoningModelError
impl Eq for ReasoningModelError
Source§impl Error for ReasoningModelError
impl Error for ReasoningModelError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ReasoningModelError> for ApiVocabularyError
impl From<ReasoningModelError> for ApiVocabularyError
Source§fn from(source: ReasoningModelError) -> Self
fn from(source: ReasoningModelError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReasoningModelError
impl PartialEq for ReasoningModelError
impl StructuralPartialEq for ReasoningModelError
Auto Trait Implementations§
impl Freeze for ReasoningModelError
impl RefUnwindSafe for ReasoningModelError
impl Send for ReasoningModelError
impl Sync for ReasoningModelError
impl Unpin for ReasoningModelError
impl UnsafeUnpin for ReasoningModelError
impl UnwindSafe for ReasoningModelError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.