pub enum SchemaValidationFailure {
ValueOutOfBounds,
Invalid {
errors: Vec<SchemaValidationError>,
},
}Expand description
Failure validating one tool argument or output value.
Variants§
ValueOutOfBounds
Value exceeds encoded byte or nesting limits.
Invalid
Value violates one or more schema constraints.
Fields
§
errors: Vec<SchemaValidationError>Sorted bounded validation diagnostics.
Implementations§
Source§impl SchemaValidationFailure
impl SchemaValidationFailure
Sourcepub fn errors(&self) -> &[SchemaValidationError]
pub fn errors(&self) -> &[SchemaValidationError]
Returns normalized diagnostics; bounds failures have no per-path errors.
Trait Implementations§
Source§impl Clone for SchemaValidationFailure
impl Clone for SchemaValidationFailure
Source§fn clone(&self) -> SchemaValidationFailure
fn clone(&self) -> SchemaValidationFailure
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 SchemaValidationFailure
impl Debug for SchemaValidationFailure
Source§impl Display for SchemaValidationFailure
impl Display for SchemaValidationFailure
impl Eq for SchemaValidationFailure
Source§impl Error for SchemaValidationFailure
impl Error for SchemaValidationFailure
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 SchemaValidationFailure
impl PartialEq for SchemaValidationFailure
impl StructuralPartialEq for SchemaValidationFailure
Auto Trait Implementations§
impl Freeze for SchemaValidationFailure
impl RefUnwindSafe for SchemaValidationFailure
impl Send for SchemaValidationFailure
impl Sync for SchemaValidationFailure
impl Unpin for SchemaValidationFailure
impl UnsafeUnpin for SchemaValidationFailure
impl UnwindSafe for SchemaValidationFailure
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