pub struct AlterColumn {
pub schema_name: String,
pub table_name: String,
pub previous: ColumnSnapshot,
pub next: ColumnSnapshot,
}Expand description
Alter an existing column by comparing the previous and desired snapshots.
Fields§
§schema_name: String§table_name: String§previous: ColumnSnapshot§next: ColumnSnapshotImplementations§
Source§impl AlterColumn
impl AlterColumn
pub fn new( schema_name: impl Into<String>, table_name: impl Into<String>, previous: ColumnSnapshot, next: ColumnSnapshot, ) -> Self
Trait Implementations§
Source§impl Clone for AlterColumn
impl Clone for AlterColumn
Source§fn clone(&self) -> AlterColumn
fn clone(&self) -> AlterColumn
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 AlterColumn
impl Debug for AlterColumn
Source§impl PartialEq for AlterColumn
impl PartialEq for AlterColumn
Source§fn eq(&self, other: &AlterColumn) -> bool
fn eq(&self, other: &AlterColumn) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AlterColumn
impl StructuralPartialEq for AlterColumn
Auto Trait Implementations§
impl Freeze for AlterColumn
impl RefUnwindSafe for AlterColumn
impl Send for AlterColumn
impl Sync for AlterColumn
impl Unpin for AlterColumn
impl UnsafeUnpin for AlterColumn
impl UnwindSafe for AlterColumn
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