pub enum DiffOp<T> {
Added(T),
Removed(T),
Modified {
from: T,
to: T,
},
Unchanged,
}Expand description
A diff operation on a single entity. Polymorphic over the entity type so the same vocabulary applies to whole resources, individual fields, etc.
Variants§
Implementations§
Trait Implementations§
impl<T> StructuralPartialEq for DiffOp<T>
Auto Trait Implementations§
impl<T> Freeze for DiffOp<T>where
T: Freeze,
impl<T> RefUnwindSafe for DiffOp<T>where
T: RefUnwindSafe,
impl<T> Send for DiffOp<T>where
T: Send,
impl<T> Sync for DiffOp<T>where
T: Sync,
impl<T> Unpin for DiffOp<T>where
T: Unpin,
impl<T> UnsafeUnpin for DiffOp<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for DiffOp<T>where
T: UnwindSafe,
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