Enum hedwig::validators::JsonSchemaValidatorError [−][src]
#[non_exhaustive]
pub enum JsonSchemaValidatorError {
SchemaDeserialize(Error),
SchemaCompile(SchemaError),
SchemaUrlParse(ParseError, String),
SchemaUrlResolve(Url),
SerializeData(Error),
ValidateData(String),
}
This is supported on crate feature
json-schema
only.Expand description
Errors that may occur when validating messages using a JSON schema.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SchemaDeserialize(Error)
Unable to deserialize the schema
Tuple Fields of SchemaDeserialize
0: Error
SchemaCompile(SchemaError)
Unable to compile the schema
Tuple Fields of SchemaCompile
0: SchemaError
SchemaUrlParse(ParseError, String)
Could not parse a schema URL
Tuple Fields of SchemaUrlParse
0: ParseError
1: String
SchemaUrlResolve(Url)
Could not resolve the schema URL
Tuple Fields of SchemaUrlResolve
0: Url
SerializeData(Error)
Could not serialize message data
Tuple Fields of SerializeData
0: Error
ValidateData(String)
Could not validate message data
Tuple Fields of ValidateData
0: String
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for JsonSchemaValidatorError
impl Send for JsonSchemaValidatorError
impl Sync for JsonSchemaValidatorError
impl Unpin for JsonSchemaValidatorError
impl !UnwindSafe for JsonSchemaValidatorError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more