pub enum Mod<S: AsRef<[u8]> + Eq + Hash> {
Add(S, HashSet<S>),
Delete(S, HashSet<S>),
Replace(S, HashSet<S>),
Increment(S, S),
}
Expand description
Possible sub-operations for the Modify operation.
Variants§
Add(S, HashSet<S>)
Add an attribute, with at least one value.
Delete(S, HashSet<S>)
Delete the entire attribute, or the given values of an attribute.
Replace(S, HashSet<S>)
Replace an existing attribute, setting its values to those in the set, or delete it if no values are given.
Increment(S, S)
Increment the attribute by the given value.
Trait Implementations§
source§impl<S: PartialEq + AsRef<[u8]> + Eq + Hash> PartialEq<Mod<S>> for Mod<S>
impl<S: PartialEq + AsRef<[u8]> + Eq + Hash> PartialEq<Mod<S>> for Mod<S>
impl<S: AsRef<[u8]> + Eq + Hash> StructuralPartialEq for Mod<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for Mod<S>where S: RefUnwindSafe,
impl<S> Send for Mod<S>where S: Send,
impl<S> Sync for Mod<S>where S: Sync,
impl<S> Unpin for Mod<S>where S: Unpin,
impl<S> UnwindSafe for Mod<S>where S: 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