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 means: Create or update record. Merge write command bins with existing bins.

UpdateOnly means: Update record only. Fail if record does not exist. Merge write command bins with existing bins.

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 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 means: Create only. Fail if record exists.

Trait Implementations

impl Debug for RecordExistsAction
[src]

Formats the value using the given formatter.

impl PartialEq for RecordExistsAction
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for RecordExistsAction
[src]

Returns the "default value" for a type. Read more