#[non_exhaustive]pub enum SchemaIssueKind {
MissingColumn,
IncompatibleType,
NullabilityMismatch,
AutoIncrementMismatch,
DefaultMismatch,
}Expand description
super::TableDefinition 与数据库列不兼容的原因。
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.
MissingColumn
声明字段在数据库中不存在。
IncompatibleType
数据库列不能承载声明的运行期字段类型。
NullabilityMismatch
必填字段在数据库中仍允许 NULL。
AutoIncrementMismatch
声明要求自增,但数据库列没有自增属性,或反之。
DefaultMismatch
声明默认值与数据库默认值不一致。
Trait Implementations§
Source§impl Clone for SchemaIssueKind
impl Clone for SchemaIssueKind
impl Copy for SchemaIssueKind
Source§impl Debug for SchemaIssueKind
impl Debug for SchemaIssueKind
impl Eq for SchemaIssueKind
Source§impl PartialEq for SchemaIssueKind
impl PartialEq for SchemaIssueKind
impl StructuralPartialEq for SchemaIssueKind
Auto Trait Implementations§
impl Forget for SchemaIssueKind
impl Freeze for SchemaIssueKind
impl Move for SchemaIssueKind
impl RefUnwindSafe for SchemaIssueKind
impl Send for SchemaIssueKind
impl Sync for SchemaIssueKind
impl Unpin for SchemaIssueKind
impl UnsafeUnpin for SchemaIssueKind
impl UnwindSafe for SchemaIssueKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more