#[non_exhaustive]pub enum ApiVocabularyError {
Reasoning(ReasoningModelError),
EmptyContext {
field: &'static str,
},
ContextTooLong {
field: &'static str,
maximum: usize,
},
IdenticalContexts,
ZeroReliability,
}Expand description
Validation failures for typed API comparison observations.
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.
Reasoning(ReasoningModelError)
A core reasoning identifier was invalid.
EmptyContext
An opaque context identifier was empty.
ContextTooLong
An opaque context identifier exceeded the bounded contract.
IdenticalContexts
A comparison attempted to use the same baseline and candidate view.
ZeroReliability
A paired observation cannot claim zero source reliability.
Trait Implementations§
Source§impl Clone for ApiVocabularyError
impl Clone for ApiVocabularyError
Source§fn clone(&self) -> ApiVocabularyError
fn clone(&self) -> ApiVocabularyError
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 ApiVocabularyError
impl Debug for ApiVocabularyError
Source§impl Display for ApiVocabularyError
impl Display for ApiVocabularyError
impl Eq for ApiVocabularyError
Source§impl Error for ApiVocabularyError
impl Error for ApiVocabularyError
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 ApiVocabularyError
impl PartialEq for ApiVocabularyError
impl StructuralPartialEq for ApiVocabularyError
Auto Trait Implementations§
impl Freeze for ApiVocabularyError
impl RefUnwindSafe for ApiVocabularyError
impl Send for ApiVocabularyError
impl Sync for ApiVocabularyError
impl Unpin for ApiVocabularyError
impl UnsafeUnpin for ApiVocabularyError
impl UnwindSafe for ApiVocabularyError
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.