Enum aerospike::policy::RecordExistsAction
source · pub enum RecordExistsAction {
Update,
UpdateOnly,
Replace,
ReplaceOnly,
CreateOnly,
}
Expand description
RecordExistsAction
determines how to handle record writes based on record generation.
Variants§
Update
Update means: Create or update record. Merge write command bins with existing bins.
UpdateOnly
UpdateOnly means: Update record only. Fail if record does not exist. Merge write command bins with existing bins.
Replace
Replace means: Create or replace record. Delete existing bins not referenced by write command bins. Supported by Aerospike 2 server versions >= 2.7.5 and Aerospike 3 server versions >= 3.1.6.
ReplaceOnly
ReplaceOnly means: Replace record only. Fail if record does not exist. Delete existing bins not referenced by write command bins. Supported by Aerospike 2 server versions >= 2.7.5 and Aerospike 3 server versions >= 3.1.6.
CreateOnly
CreateOnly means: Create only. Fail if record exists.
Trait Implementations§
source§impl Clone for RecordExistsAction
impl Clone for RecordExistsAction
source§fn clone(&self) -> RecordExistsAction
fn clone(&self) -> RecordExistsAction
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 Debug for RecordExistsAction
impl Debug for RecordExistsAction
source§impl Default for RecordExistsAction
impl Default for RecordExistsAction
source§fn default() -> RecordExistsAction
fn default() -> RecordExistsAction
Returns the “default value” for a type. Read more
source§impl PartialEq<RecordExistsAction> for RecordExistsAction
impl PartialEq<RecordExistsAction> for RecordExistsAction
source§fn eq(&self, other: &RecordExistsAction) -> bool
fn eq(&self, other: &RecordExistsAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecordExistsAction
Auto Trait Implementations§
impl RefUnwindSafe for RecordExistsAction
impl Send for RecordExistsAction
impl Sync for RecordExistsAction
impl Unpin for RecordExistsAction
impl UnwindSafe for RecordExistsAction
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