#[non_exhaustive]pub enum StructuredOutputErrorKind {
MissingText,
Refusal,
InvalidOutput,
}Expand description
Stable category for local structured-output validation failures.
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.
MissingText
The response contained no model-visible text.
Refusal
The provider returned an explicit refusal instead of structured data.
InvalidOutput
The textual response was not valid for the requested Rust type.
Trait Implementations§
Source§impl Clone for StructuredOutputErrorKind
impl Clone for StructuredOutputErrorKind
Source§fn clone(&self) -> StructuredOutputErrorKind
fn clone(&self) -> StructuredOutputErrorKind
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 moreimpl Copy for StructuredOutputErrorKind
Source§impl Debug for StructuredOutputErrorKind
impl Debug for StructuredOutputErrorKind
Source§impl<'de> Deserialize<'de> for StructuredOutputErrorKind
impl<'de> Deserialize<'de> for StructuredOutputErrorKind
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 StructuredOutputErrorKind
impl StructuralPartialEq for StructuredOutputErrorKind
Auto Trait Implementations§
impl Freeze for StructuredOutputErrorKind
impl RefUnwindSafe for StructuredOutputErrorKind
impl Send for StructuredOutputErrorKind
impl Sync for StructuredOutputErrorKind
impl Unpin for StructuredOutputErrorKind
impl UnsafeUnpin for StructuredOutputErrorKind
impl UnwindSafe for StructuredOutputErrorKind
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