pub struct ColumnDiff {
pub data_type_changed: bool,
pub old_data_type: Option<String>,
pub new_data_type: Option<String>,
pub nullability_changed: bool,
pub default_changed: bool,
pub old_default: Option<String>,
pub new_default: Option<String>,
}Expand description
Diff for a single column
Fields§
§data_type_changed: boolWhether the data type changed
old_data_type: Option<String>Old data type (if changed)
new_data_type: Option<String>New data type (if changed)
nullability_changed: boolWhether nullability changed
default_changed: boolWhether default value changed
old_default: Option<String>Old default value (if changed)
new_default: Option<String>New default value (if changed)
Trait Implementations§
Source§impl Clone for ColumnDiff
impl Clone for ColumnDiff
Source§fn clone(&self) -> ColumnDiff
fn clone(&self) -> ColumnDiff
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 ColumnDiff
impl Debug for ColumnDiff
Source§impl<'de> Deserialize<'de> for ColumnDiff
impl<'de> Deserialize<'de> for ColumnDiff
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 ColumnDiff
Source§impl PartialEq for ColumnDiff
impl PartialEq for ColumnDiff
Source§fn eq(&self, other: &ColumnDiff) -> bool
fn eq(&self, other: &ColumnDiff) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ColumnDiff
impl Serialize for ColumnDiff
impl StructuralPartialEq for ColumnDiff
Auto Trait Implementations§
impl Freeze for ColumnDiff
impl RefUnwindSafe for ColumnDiff
impl Send for ColumnDiff
impl Sync for ColumnDiff
impl Unpin for ColumnDiff
impl UnsafeUnpin for ColumnDiff
impl UnwindSafe for ColumnDiff
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