pub enum PayloadValidationError {
Constraints(Vec<String>),
References(Vec<XGtsRefValidationError>),
Unexplained(String),
}Expand description
Why PayloadValidator::validate rejected a payload.
Variants§
Constraints(Vec<String>)
JSON Schema constraint violations, one message each.
References(Vec<XGtsRefValidationError>)
GTS reference violations (x-gts-type-ref, x-gts-instance-ref, or
x-gts-pattern-ref), reported only when every other constraint holds.
Unexplained(String)
A rejection left unexplained, since explaining it would cost exponentially more than deciding it; either kind of violation may be behind it.
Trait Implementations§
Source§impl Clone for PayloadValidationError
impl Clone for PayloadValidationError
Source§impl Debug for PayloadValidationError
impl Debug for PayloadValidationError
Source§impl Display for PayloadValidationError
impl Display for PayloadValidationError
Source§impl Error for PayloadValidationError
impl Error for PayloadValidationError
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 From<PayloadValidationError> for StoreError
impl From<PayloadValidationError> for StoreError
Source§fn from(error: PayloadValidationError) -> Self
fn from(error: PayloadValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PayloadValidationError
impl RefUnwindSafe for PayloadValidationError
impl Send for PayloadValidationError
impl Sync for PayloadValidationError
impl Unpin for PayloadValidationError
impl UnsafeUnpin for PayloadValidationError
impl UnwindSafe for PayloadValidationError
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