pub enum SetPatch<U> {
Insert(U),
Remove(U),
Overwrite {
values: Vec<U>,
},
Clear,
}Expand description
SetPatch
Set operations applied in-order; Overwrite replaces the entire set.
Variants§
Trait Implementations§
Source§impl<U: CandidType> CandidType for SetPatch<U>
impl<U: CandidType> CandidType for SetPatch<U>
Source§impl<'de, U> Deserialize<'de> for SetPatch<U>where
U: Deserialize<'de>,
impl<'de, U> Deserialize<'de> for SetPatch<U>where
U: 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
Auto Trait Implementations§
impl<U> Freeze for SetPatch<U>where
U: Freeze,
impl<U> RefUnwindSafe for SetPatch<U>where
U: RefUnwindSafe,
impl<U> Send for SetPatch<U>where
U: Send,
impl<U> Sync for SetPatch<U>where
U: Sync,
impl<U> Unpin for SetPatch<U>where
U: Unpin,
impl<U> UnwindSafe for SetPatch<U>where
U: 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