#[non_exhaustive]pub enum SchemaSyncChangeKind {
CreatedTable,
AddedColumn,
RenamedColumn,
ModifiedColumn,
AddedPrimaryKey,
AddedIndex,
AddedCheck,
AddedForeignKey,
}Expand description
schema 同步变更类型。
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.
CreatedTable
创建整张表。
AddedColumn
增加字段。
RenamedColumn
原位改名字段并保留全部数据。
ModifiedColumn
在旧数据预检通过后修改字段类型、NULL 或默认值。
AddedPrimaryKey
增加主键。
AddedIndex
增加普通或唯一索引。
AddedCheck
增加 CHECK 约束。
AddedForeignKey
增加外键约束。
Trait Implementations§
Source§impl Clone for SchemaSyncChangeKind
impl Clone for SchemaSyncChangeKind
Source§fn clone(&self) -> SchemaSyncChangeKind
fn clone(&self) -> SchemaSyncChangeKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SchemaSyncChangeKind
Source§impl Debug for SchemaSyncChangeKind
impl Debug for SchemaSyncChangeKind
impl Eq for SchemaSyncChangeKind
Source§impl PartialEq for SchemaSyncChangeKind
impl PartialEq for SchemaSyncChangeKind
impl StructuralPartialEq for SchemaSyncChangeKind
Auto Trait Implementations§
impl Freeze for SchemaSyncChangeKind
impl RefUnwindSafe for SchemaSyncChangeKind
impl Send for SchemaSyncChangeKind
impl Sync for SchemaSyncChangeKind
impl Unpin for SchemaSyncChangeKind
impl UnsafeUnpin for SchemaSyncChangeKind
impl UnwindSafe for SchemaSyncChangeKind
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