pub struct FieldDiff {
pub field: String,
pub old_value: Option<Value>,
pub new_value: Option<Value>,
pub old_sql_null: bool,
pub new_sql_null: bool,
}Expand description
Missing and explicit JSON null are different. *_sql_null also distinguishes
SQL NULL from JSON null for nullable JSON columns.
Fields§
§field: String§old_value: Option<Value>§new_value: Option<Value>§old_sql_null: bool§new_sql_null: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for FieldDiff
impl<'de> Deserialize<'de> for FieldDiff
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 StructuralPartialEq for FieldDiff
Auto Trait Implementations§
impl Freeze for FieldDiff
impl RefUnwindSafe for FieldDiff
impl Send for FieldDiff
impl Sync for FieldDiff
impl Unpin for FieldDiff
impl UnsafeUnpin for FieldDiff
impl UnwindSafe for FieldDiff
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