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§fn clone(&self) -> PrimaryKeyDiff
fn clone(&self) -> PrimaryKeyDiff
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 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<PrimaryKeyDiff, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrimaryKeyDiff, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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