Enum gauc::couchbase::types::operation::Operation [] [src]

pub enum Operation {
    Upsert,
    Add,
    Replace,
    Set,
    Append,
    Prepend,
}

Variants

The default storage mode. This constant was added in version 2.6.2 for the sake of maintaining a default storage mode, eliminating the need for simple storage operations to explicitly define operation. Behaviorally it is identical to Set in that it will make the server unconditionally store the item, whether it exists or not.

Will cause the operation to fail if the key already exists in the cluster.

Will cause the operation to fail unless the key already exists in the cluster.

Unconditionally store the item in the cluster

Rather than setting the contents of the entire document, take the value specified in value and append it to the existing bytes in the value.

Like Append, but prepends the new value to the existing value.

Trait Implementations

impl Debug for Operation
[src]

Formats the value using the given formatter.

impl Clone for Operation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Operation
[src]