#[non_exhaustive]pub enum SchemaDiffOperation {
AddColumn {
column: ColumnDef,
},
DropColumn {
name: String,
},
RenameColumn {
from: String,
to: String,
},
Unsupported {
clause: String,
},
}Expand description
Normalized ALTER TABLE schema-diff operations for replay-grade metadata.
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.
Trait Implementations§
Source§impl Clone for SchemaDiffOperation
impl Clone for SchemaDiffOperation
Source§fn clone(&self) -> SchemaDiffOperation
fn clone(&self) -> SchemaDiffOperation
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 moreSource§impl Debug for SchemaDiffOperation
impl Debug for SchemaDiffOperation
Source§impl<'de> Deserialize<'de> for SchemaDiffOperation
impl<'de> Deserialize<'de> for SchemaDiffOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SchemaDiffOperation
Source§impl PartialEq for SchemaDiffOperation
impl PartialEq for SchemaDiffOperation
Source§fn eq(&self, other: &SchemaDiffOperation) -> bool
fn eq(&self, other: &SchemaDiffOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaDiffOperation
impl Serialize for SchemaDiffOperation
impl StructuralPartialEq for SchemaDiffOperation
Auto Trait Implementations§
impl Freeze for SchemaDiffOperation
impl RefUnwindSafe for SchemaDiffOperation
impl Send for SchemaDiffOperation
impl Sync for SchemaDiffOperation
impl Unpin for SchemaDiffOperation
impl UnsafeUnpin for SchemaDiffOperation
impl UnwindSafe for SchemaDiffOperation
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