#[non_exhaustive]pub enum SchemaErrorCode {
Show 68 variants
SchemaNull,
SchemaInvalidType,
SchemaRootMissingId,
SchemaRootMissingName,
SchemaRootMissingSchema,
SchemaRootMissingType,
SchemaTypeInvalid,
SchemaTypeNotString,
SchemaRefNotFound,
SchemaRefNotString,
SchemaRefCircular,
SchemaRefInvalid,
SchemaDefinitionsMustBeObject,
SchemaDefinitionMissingType,
SchemaDefinitionInvalid,
SchemaPropertiesMustBeObject,
SchemaPropertyInvalid,
SchemaRequiredMustBeArray,
SchemaRequiredItemMustBeString,
SchemaRequiredPropertyNotDefined,
SchemaAdditionalPropertiesInvalid,
SchemaArrayMissingItems,
SchemaItemsInvalid,
SchemaMapMissingValues,
SchemaValuesInvalid,
SchemaTupleMissingDefinition,
SchemaTupleMissingProperties,
SchemaTupleInvalidFormat,
SchemaTuplePropertyNotDefined,
SchemaChoiceMissingChoices,
SchemaChoicesNotObject,
SchemaChoiceInvalid,
SchemaSelectorNotString,
SchemaEnumNotArray,
SchemaEnumEmpty,
SchemaEnumDuplicates,
SchemaConstInvalid,
SchemaUsesNotArray,
SchemaUsesInvalidExtension,
SchemaOffersNotArray,
SchemaOffersInvalidExtension,
SchemaExtensionKeywordWithoutUses,
SchemaMinMaxInvalid,
SchemaMinLengthInvalid,
SchemaMaxLengthInvalid,
SchemaPatternInvalid,
SchemaFormatInvalid,
SchemaConstraintTypeMismatch,
SchemaMinimumExceedsMaximum,
SchemaMinLengthExceedsMaxLength,
SchemaMinLengthNegative,
SchemaMaxLengthNegative,
SchemaMinItemsExceedsMaxItems,
SchemaMinItemsNegative,
SchemaMultipleOfInvalid,
SchemaKeywordInvalidType,
SchemaTypeArrayEmpty,
SchemaTypeObjectMissingRef,
SchemaImportNotAllowed,
SchemaImportFailed,
SchemaImportCircular,
SchemaAllOfNotArray,
SchemaAnyOfNotArray,
SchemaOneOfNotArray,
SchemaNotInvalid,
SchemaIfInvalid,
SchemaThenWithoutIf,
SchemaElseWithoutIf,
}Expand description
Error codes for schema validation errors.
This enum is marked #[non_exhaustive] to allow adding new error codes
in future versions without breaking semver compatibility.
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.
SchemaNull
SchemaInvalidType
SchemaRootMissingId
SchemaRootMissingName
SchemaRootMissingSchema
SchemaRootMissingType
SchemaTypeInvalid
SchemaTypeNotString
SchemaRefNotFound
SchemaRefNotString
SchemaRefCircular
SchemaRefInvalid
SchemaDefinitionsMustBeObject
SchemaDefinitionMissingType
SchemaDefinitionInvalid
SchemaPropertiesMustBeObject
SchemaPropertyInvalid
SchemaRequiredMustBeArray
SchemaRequiredItemMustBeString
SchemaRequiredPropertyNotDefined
SchemaAdditionalPropertiesInvalid
SchemaArrayMissingItems
SchemaItemsInvalid
SchemaMapMissingValues
SchemaValuesInvalid
SchemaTupleMissingDefinition
SchemaTupleMissingProperties
SchemaTupleInvalidFormat
SchemaTuplePropertyNotDefined
SchemaChoiceMissingChoices
SchemaChoicesNotObject
SchemaChoiceInvalid
SchemaSelectorNotString
SchemaEnumNotArray
SchemaEnumEmpty
SchemaEnumDuplicates
SchemaConstInvalid
SchemaUsesNotArray
SchemaUsesInvalidExtension
SchemaOffersNotArray
SchemaOffersInvalidExtension
SchemaExtensionKeywordWithoutUses
SchemaMinMaxInvalid
SchemaMinLengthInvalid
SchemaMaxLengthInvalid
SchemaPatternInvalid
SchemaFormatInvalid
SchemaConstraintTypeMismatch
SchemaMinimumExceedsMaximum
SchemaMinLengthExceedsMaxLength
SchemaMinLengthNegative
SchemaMaxLengthNegative
SchemaMinItemsExceedsMaxItems
SchemaMinItemsNegative
SchemaMultipleOfInvalid
SchemaKeywordInvalidType
SchemaTypeArrayEmpty
SchemaTypeObjectMissingRef
SchemaImportNotAllowed
SchemaImportFailed
SchemaImportCircular
SchemaAllOfNotArray
SchemaAnyOfNotArray
SchemaOneOfNotArray
SchemaNotInvalid
SchemaIfInvalid
SchemaThenWithoutIf
SchemaElseWithoutIf
Implementations§
Trait Implementations§
Source§impl Clone for SchemaErrorCode
impl Clone for SchemaErrorCode
Source§fn clone(&self) -> SchemaErrorCode
fn clone(&self) -> SchemaErrorCode
Returns a duplicate of the value. Read more
1.0.0 · 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 SchemaErrorCode
impl Debug for SchemaErrorCode
Source§impl Display for SchemaErrorCode
impl Display for SchemaErrorCode
Source§impl Hash for SchemaErrorCode
impl Hash for SchemaErrorCode
Source§impl PartialEq for SchemaErrorCode
impl PartialEq for SchemaErrorCode
impl Copy for SchemaErrorCode
impl Eq for SchemaErrorCode
impl StructuralPartialEq for SchemaErrorCode
Auto Trait Implementations§
impl Freeze for SchemaErrorCode
impl RefUnwindSafe for SchemaErrorCode
impl Send for SchemaErrorCode
impl Sync for SchemaErrorCode
impl Unpin for SchemaErrorCode
impl UnwindSafe for SchemaErrorCode
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