pub struct FieldDiffView {
pub path: String,
pub removed: Option<SlotText>,
pub added: Option<SlotText>,
}Expand description
One field-level difference at the fork, values already in display form (compact JSON).
removed/added are what a painter shows on the -/+ side; an added field has no
removed, a removed field no added.
Fields§
§path: String§removed: Option<SlotText>§added: Option<SlotText>Trait Implementations§
Source§impl Clone for FieldDiffView
impl Clone for FieldDiffView
Source§fn clone(&self) -> FieldDiffView
fn clone(&self) -> FieldDiffView
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 FieldDiffView
impl Debug for FieldDiffView
Source§impl<'de> Deserialize<'de> for FieldDiffView
impl<'de> Deserialize<'de> for FieldDiffView
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
Source§impl PartialEq for FieldDiffView
impl PartialEq for FieldDiffView
Source§impl Serialize for FieldDiffView
impl Serialize for FieldDiffView
impl StructuralPartialEq for FieldDiffView
Auto Trait Implementations§
impl Freeze for FieldDiffView
impl RefUnwindSafe for FieldDiffView
impl Send for FieldDiffView
impl Sync for FieldDiffView
impl Unpin for FieldDiffView
impl UnsafeUnpin for FieldDiffView
impl UnwindSafe for FieldDiffView
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