#[repr(u32)]
pub enum ucl_schema_error_code {
UCL_SCHEMA_OK,
UCL_SCHEMA_TYPE_MISMATCH,
UCL_SCHEMA_INVALID_SCHEMA,
UCL_SCHEMA_MISSING_PROPERTY,
UCL_SCHEMA_CONSTRAINT,
UCL_SCHEMA_MISSING_DEPENDENCY,
UCL_SCHEMA_EXTERNAL_REF_MISSING,
UCL_SCHEMA_EXTERNAL_REF_INVALID,
UCL_SCHEMA_INTERNAL_ERROR,
UCL_SCHEMA_UNKNOWN,
}
Expand description
Used to define UCL schema error
Variants§
UCL_SCHEMA_OK
< no error
UCL_SCHEMA_TYPE_MISMATCH
< type of object is incorrect
UCL_SCHEMA_INVALID_SCHEMA
< schema is invalid
UCL_SCHEMA_MISSING_PROPERTY
< one or more missing properties
UCL_SCHEMA_CONSTRAINT
< constraint found
UCL_SCHEMA_MISSING_DEPENDENCY
< missing dependency
UCL_SCHEMA_EXTERNAL_REF_MISSING
< cannot fetch external ref
UCL_SCHEMA_EXTERNAL_REF_INVALID
< invalid external ref
UCL_SCHEMA_INTERNAL_ERROR
< something bad happened
UCL_SCHEMA_UNKNOWN
< generic error
Trait Implementations§
source§impl Clone for ucl_schema_error_code
impl Clone for ucl_schema_error_code
source§fn clone(&self) -> ucl_schema_error_code
fn clone(&self) -> ucl_schema_error_code
Returns a copy 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 ucl_schema_error_code
impl Debug for ucl_schema_error_code
source§impl Hash for ucl_schema_error_code
impl Hash for ucl_schema_error_code
source§impl PartialEq<ucl_schema_error_code> for ucl_schema_error_code
impl PartialEq<ucl_schema_error_code> for ucl_schema_error_code
source§fn eq(&self, other: &ucl_schema_error_code) -> bool
fn eq(&self, other: &ucl_schema_error_code) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ucl_schema_error_code
impl Eq for ucl_schema_error_code
impl StructuralEq for ucl_schema_error_code
impl StructuralPartialEq for ucl_schema_error_code
Auto Trait Implementations§
impl RefUnwindSafe for ucl_schema_error_code
impl Send for ucl_schema_error_code
impl Sync for ucl_schema_error_code
impl Unpin for ucl_schema_error_code
impl UnwindSafe for ucl_schema_error_code
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