Enum spacetimedb_sats::db::error::SchemaError
source · pub enum SchemaError {
MultiplePrimaryKeys {
table: String,
pks: Vec<String>,
},
EmptyTableName {
table_id: TableId,
},
ColumnsNotFound {
name: String,
table: String,
columns: Vec<ColId>,
ty: DefType,
},
EmptyName {
table: String,
ty: DefType,
id: u32,
},
ConstraintUnset {
table: String,
name: String,
columns: ColList,
},
OneAutoInc {
table: String,
field: String,
},
OnlyBtree {
table: String,
index: String,
index_type: IndexType,
},
}
Variants§
Trait Implementations§
source§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)>
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 PartialEq for SchemaError
impl PartialEq for SchemaError
source§fn eq(&self, other: &SchemaError) -> bool
fn eq(&self, other: &SchemaError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SchemaError
Auto Trait Implementations§
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