pub enum OutputSchemaError {
TooLarge,
ExternalReference,
Invalid {
reason: String,
},
}Expand description
Failure returned while constructing a structured-output schema.
Variants§
TooLarge
The serialized schema exceeds the harness safety limit.
ExternalReference
The schema references a resource outside its own document.
Invalid
The document is invalid or outside the harness safety profile.
Trait Implementations§
Source§impl Debug for OutputSchemaError
impl Debug for OutputSchemaError
Source§impl Display for OutputSchemaError
impl Display for OutputSchemaError
impl Eq for OutputSchemaError
Source§impl Error for OutputSchemaError
impl Error for OutputSchemaError
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 PartialEq for OutputSchemaError
impl PartialEq for OutputSchemaError
impl StructuralPartialEq for OutputSchemaError
Auto Trait Implementations§
impl Freeze for OutputSchemaError
impl RefUnwindSafe for OutputSchemaError
impl Send for OutputSchemaError
impl Sync for OutputSchemaError
impl Unpin for OutputSchemaError
impl UnsafeUnpin for OutputSchemaError
impl UnwindSafe for OutputSchemaError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.