#[non_exhaustive]pub enum Error {
Show 13 variants
EmptyForeignTableName,
EmptyForeignColumnName,
EmptyColumnName,
PrimaryKeyAndForeignKey,
PrimaryKeyAndUnique,
EmptyGeneratorExpr,
EmptyViewSelect,
EmptyTableName,
EmptyViewName,
NoColumns,
MultiplePrimaryKeys,
WithoutRowidNoPrimaryKey,
EmptySchema,
}
Expand description
Errors for all Structs and Functions in this Crate.
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.
EmptyForeignTableName
Error used when a ForeignKey has an empty foreign_table
Name
EmptyForeignColumnName
Error used when a ForeignKey has an empty foreign_column
Name
EmptyColumnName
Error used when a Column has an empty name
PrimaryKeyAndForeignKey
Error used when a Column has a PrimaryKey and ForeignKey at the same time
PrimaryKeyAndUnique
Error used when a Column has a PrimaryKey and Unique at the same time (Primary Key implies Unique, see here)
EmptyGeneratorExpr
EmptyViewSelect
Error used when a View has an empty select
EmptyTableName
Error used when a Table has an empty name
EmptyViewName
Error used when a View has an empty name
NoColumns
MultiplePrimaryKeys
Error used when a Table has multiple Columns with a PrimaryKey
WithoutRowidNoPrimaryKey
Error used when a table marked as without_rowid
has no Column with a PrimaryKey
(WITHOUT ROWID
tables need a Primary Key, see here)
EmptySchema
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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