pub enum PatchField<T> {
Missing,
Value(T),
}Expand description
A JSON patch value. Missing means that the property was not sent;
Value(None) represents an explicit JSON null.
Variants§
Implementations§
Source§impl<T> PatchField<T>
impl<T> PatchField<T>
pub const fn is_missing(&self) -> bool
Trait Implementations§
Source§impl<T: Clone> Clone for PatchField<T>
impl<T: Clone> Clone for PatchField<T>
Source§impl<T: Debug> Debug for PatchField<T>
impl<T: Debug> Debug for PatchField<T>
Source§impl<T> Default for PatchField<T>
impl<T> Default for PatchField<T>
Source§impl<'de, T> Deserialize<'de> for PatchField<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PatchField<T>where
T: Deserialize<'de>,
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<T: Eq> Eq for PatchField<T>
Source§impl<T: PartialEq> PartialEq for PatchField<T>
impl<T: PartialEq> PartialEq for PatchField<T>
impl<T: PartialEq> StructuralPartialEq for PatchField<T>
Auto Trait Implementations§
impl<T> Forget for PatchField<T>
impl<T> Freeze for PatchField<T>where
T: Freeze,
impl<T> Move for PatchField<T>
impl<T> RefUnwindSafe for PatchField<T>where
T: RefUnwindSafe,
impl<T> Send for PatchField<T>where
T: Send,
impl<T> Sync for PatchField<T>where
T: Sync,
impl<T> Unpin for PatchField<T>where
T: Unpin,
impl<T> UnsafeUnpin for PatchField<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PatchField<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