pub struct PrimaryKeyDiff {
pub desired: Option<Vec<String>>,
pub actual: Option<PrimaryKeyModel>,
}Expand description
主键差异。
Fields§
§desired: Option<Vec<String>>期望主键(Some 表示需要建立该主键)
actual: Option<PrimaryKeyModel>实际主键(用于删除旧约束)
Trait Implementations§
Source§impl Clone for PrimaryKeyDiff
impl Clone for PrimaryKeyDiff
Source§impl Debug for PrimaryKeyDiff
impl Debug for PrimaryKeyDiff
Source§impl<'de> Deserialize<'de> for PrimaryKeyDiff
impl<'de> Deserialize<'de> for PrimaryKeyDiff
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 PrimaryKeyDiff
Source§impl PartialEq for PrimaryKeyDiff
impl PartialEq for PrimaryKeyDiff
Source§impl Serialize for PrimaryKeyDiff
impl Serialize for PrimaryKeyDiff
impl StructuralPartialEq for PrimaryKeyDiff
Auto Trait Implementations§
impl Freeze for PrimaryKeyDiff
impl RefUnwindSafe for PrimaryKeyDiff
impl Send for PrimaryKeyDiff
impl Sync for PrimaryKeyDiff
impl Unpin for PrimaryKeyDiff
impl UnsafeUnpin for PrimaryKeyDiff
impl UnwindSafe for PrimaryKeyDiff
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