#[repr(C)]pub enum InsertMode {
Overwrite = 0,
Add = 1,
Append = 2,
Prepend = 3,
}Expand description
Modes of KV Store insertion.
This type serves to facilitate alternative methods of key insertion.
Variants§
Overwrite = 0
The default method of insertion. Create a key, or overwrite an existing one
Add = 1
Ensures the request will only succeed if the key doesn’t already exist.
Append = 2
Updates the contents of a key by appending the body of the request to the existing key’s contents. If the specified key does not exist, a new key is created.
Prepend = 3
Updates the contents of a key by prepending the body of the request onto the existing key’s contents. If the specified key does not exist, a new key is created.
Trait Implementations§
Source§impl Clone for InsertMode
impl Clone for InsertMode
Source§fn clone(&self) -> InsertMode
fn clone(&self) -> InsertMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InsertMode
impl Default for InsertMode
Source§fn default() -> InsertMode
fn default() -> InsertMode
Returns the “default value” for a type. Read more
impl Copy for InsertMode
Auto Trait Implementations§
impl Freeze for InsertMode
impl RefUnwindSafe for InsertMode
impl Send for InsertMode
impl Sync for InsertMode
impl Unpin for InsertMode
impl UnwindSafe for InsertMode
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