pub enum SchemaError {
InvalidName {
kind: &'static str,
length: usize,
maximum: usize,
},
TooManyFields(usize),
DuplicateFieldId(u32),
DuplicateFieldName(String),
MissingRecordId,
MultipleRecordIds,
UnknownCrdtKind(u8),
UnsupportedFormat,
CollectionIdMismatch,
InvalidEncoding(String),
NonCanonicalEncoding,
}Expand description
Schema validation or decoding failure.
Variants§
InvalidName
A required name was empty or exceeded its byte limit.
Fields
TooManyFields(usize)
More fields were supplied than the decoder permits.
DuplicateFieldId(u32)
Two fields use the same stable numeric ID.
DuplicateFieldName(String)
Two fields use the same declared name.
MissingRecordId
No record identifier was declared.
MultipleRecordIds
More than one record identifier was declared.
UnknownCrdtKind(u8)
The encoded merge strategy is unknown.
UnsupportedFormat
The object uses an unsupported format version or kind.
CollectionIdMismatch
A collection ID did not match its declared name.
InvalidEncoding(String)
The CBOR object was malformed or violated a decode limit.
NonCanonicalEncoding
The object was valid CBOR but not the unique canonical byte representation.
Trait Implementations§
Source§impl Clone for SchemaError
impl Clone for SchemaError
Source§fn clone(&self) -> SchemaError
fn clone(&self) -> SchemaError
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 SchemaError
impl Debug for SchemaError
Source§impl Display for SchemaError
impl Display for SchemaError
Source§impl Error for SchemaError
impl Error for SchemaError
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<SchemaError> for MigrationCodecError
impl From<SchemaError> for MigrationCodecError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaError> for RecordError
impl From<SchemaError> for RecordError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SchemaError
impl PartialEq for SchemaError
impl Eq for SchemaError
impl StructuralPartialEq for SchemaError
Auto Trait Implementations§
impl Freeze for SchemaError
impl RefUnwindSafe for SchemaError
impl Send for SchemaError
impl Sync for SchemaError
impl Unpin for SchemaError
impl UnwindSafe for SchemaError
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