pub struct InvalidSchema { /* private fields */ }Expand description
A tool definition carried something that is not a JSON schema.
JSON Schema allows an object or a bare boolean; anything else — a string, an array, a number — describes nothing a model could fill in.
Implementations§
Trait Implementations§
Source§impl Clone for InvalidSchema
impl Clone for InvalidSchema
Source§impl Debug for InvalidSchema
impl Debug for InvalidSchema
Source§impl Display for InvalidSchema
impl Display for InvalidSchema
impl Eq for InvalidSchema
Source§impl Error for InvalidSchema
impl Error for InvalidSchema
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 InvalidSchema
impl PartialEq for InvalidSchema
impl StructuralPartialEq for InvalidSchema
Auto Trait Implementations§
impl Freeze for InvalidSchema
impl RefUnwindSafe for InvalidSchema
impl Send for InvalidSchema
impl Sync for InvalidSchema
impl Unpin for InvalidSchema
impl UnsafeUnpin for InvalidSchema
impl UnwindSafe for InvalidSchema
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