pub struct FieldDiff {
pub type: DiffType,
pub name: String,
pub old: String,
pub new: String,
pub annotations: Vec<String>,
}Expand description
Difference for a given field.
Fields§
§type: DiffTypeThe type of change.
name: StringThe name of the changed field.
old: StringThe previous value.
new: StringThe new value.
annotations: Vec<String>Any annotations.
Trait 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 Eq for FieldDiff
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.