pub enum ApiValidationError {
MissingPathParameter {
name: String,
},
PathParameter {
name: String,
error: ValidationError,
},
MissingQueryParameter {
name: String,
},
QueryParameter {
name: String,
error: ValidationError,
},
MissingRequestBody,
RequestBody {
error: ValidationError,
},
}Expand description
API validation errors
Variants§
MissingPathParameter
Missing path parameter
PathParameter
Path parameter validation failed
Fields
§
error: ValidationErrorUnderlying schema validation error
MissingQueryParameter
Missing query parameter
QueryParameter
Query parameter validation failed
Fields
§
error: ValidationErrorUnderlying schema validation error
MissingRequestBody
Missing request body
RequestBody
Request body validation failed
Fields
§
error: ValidationErrorUnderlying schema validation error for the request body
Trait Implementations§
Source§impl Clone for ApiValidationError
impl Clone for ApiValidationError
Source§fn clone(&self) -> ApiValidationError
fn clone(&self) -> ApiValidationError
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 ApiValidationError
impl Debug for ApiValidationError
Source§impl Display for ApiValidationError
impl Display for ApiValidationError
Source§impl Error for ApiValidationError
impl Error for ApiValidationError
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 ApiValidationError
impl PartialEq for ApiValidationError
Source§fn eq(&self, other: &ApiValidationError) -> bool
fn eq(&self, other: &ApiValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiValidationError
Auto Trait Implementations§
impl Freeze for ApiValidationError
impl RefUnwindSafe for ApiValidationError
impl Send for ApiValidationError
impl Sync for ApiValidationError
impl Unpin for ApiValidationError
impl UnsafeUnpin for ApiValidationError
impl UnwindSafe for ApiValidationError
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