Enum aerospike::RecordExistsAction
[−]
[src]
pub enum RecordExistsAction { Update, UpdateOnly, Replace, ReplaceOnly, CreateOnly, }
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
impl Debug for RecordExistsAction
[src]
impl PartialEq for RecordExistsAction
[src]
fn eq(&self, __arg_0: &RecordExistsAction) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Default for RecordExistsAction
[src]
fn default() -> RecordExistsAction
[src]
Returns the "default value" for a type. Read more