#[non_exhaustive]pub enum CatalogError {
Schema(Vec<SchemaError>),
Rule(String),
Compile(CompileError),
}Expand description
Why a catalog was refused when loaded.
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.
Schema(Vec<SchemaError>)
The document does not match catalog_definition.json.
Rule(String)
A rule the schema cannot express: the protocol version, a name, a
$ref target, a component’s discriminator.
Compile(CompileError)
The catalog does not compile as the envelope schema’s catalog.json.
Trait Implementations§
Source§impl Clone for CatalogError
impl Clone for CatalogError
Source§impl Debug for CatalogError
impl Debug for CatalogError
Source§impl Display for CatalogError
impl Display for CatalogError
Source§impl Error for CatalogError
impl Error for CatalogError
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<CompileError> for CatalogError
impl From<CompileError> for CatalogError
Source§fn from(source: CompileError) -> Self
fn from(source: CompileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for CatalogError
impl Freeze for CatalogError
impl Move for CatalogError
impl RefUnwindSafe for CatalogError
impl Send for CatalogErrorwhere
RawVecInner: Send,
impl Sync for CatalogErrorwhere
RawVecInner: Sync,
impl Unpin for CatalogError
impl UnsafeUnpin for CatalogErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<SchemaError>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for CatalogErrorwhere
RawVecInner: UnwindSafe,
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