pub enum SchemaError {
Show 19 variants
InvalidFieldPath,
DuplicateCollectionName {
name: String,
},
UnknownCollection {
id: u32,
},
UnknownCollectionName {
name: String,
},
InvalidCollectionName,
InvalidSchemaVersion {
expected: u32,
got: u32,
},
SchemaVersionExhausted,
UnexpectedCollectionId {
expected: u32,
got: u32,
},
NoPrimaryKey {
collection_id: u32,
},
PrimaryFieldNotFound {
name: String,
},
PrimaryFieldMissingInSchema {
name: String,
},
RowMissingPrimary {
name: String,
},
RowUnknownField {
name: String,
},
RowMissingField {
name: String,
},
UniqueIndexViolation,
IncompatibleSchemaChange {
message: String,
},
MigrationRequired {
message: String,
},
IndexRowMissing {
collection_id: u32,
index_name: String,
},
PrimaryKeyTypeMismatch {
collection_id: u32,
},
}Expand description
Schema and row-level validation errors (catalog replay, registration, insert/get).
Variants§
InvalidFieldPath
Field path had no segments or an empty segment.
DuplicateCollectionName
Another collection already uses this name.
UnknownCollection
No collection registered with this id.
UnknownCollectionName
No collection registered under this name.
InvalidCollectionName
InvalidSchemaVersion
SchemaVersionExhausted
u32 schema version counter cannot be incremented further.
UnexpectedCollectionId
NoPrimaryKey
Collection was created without a primary key (catalog v1); inserts are not supported.
PrimaryFieldNotFound
Declared primary field is not a single top-level segment or not present in fields.
PrimaryFieldMissingInSchema
New schema version drops or renames the primary-key field.
RowMissingPrimary
Insert row did not include the primary key field.
RowUnknownField
Insert row referenced an unknown field name.
RowMissingField
Insert row omitted a non-primary field.
UniqueIndexViolation
Unique secondary index was violated (key already mapped to another primary key).
IncompatibleSchemaChange
Proposed schema update is not compatible with the existing schema.
MigrationRequired
Proposed schema update is supported, but requires an explicit migration step.
IndexRowMissing
Secondary index references a primary key with no row in latest.
PrimaryKeyTypeMismatch
Primary key scalar type does not match the collection primary field type.
Trait Implementations§
Source§impl Clone for SchemaError
impl Clone for SchemaError
Source§fn clone(&self) -> SchemaError
fn clone(&self) -> SchemaError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more