Enum gauc::couchbase::types::operation::Operation
[−]
[src]
pub enum Operation { Upsert, Add, Replace, Set, Append, Prepend, }
Variants
Upsert
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.
Add
Will cause the operation to fail if the key already exists in the cluster.
Replace
Will cause the operation to fail unless the key already exists in the cluster.
Set
Unconditionally store the item in the cluster
Append
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.
Prepend
Like Append, but prepends the new value to the existing value.
Trait Implementations
impl Debug for Operation
[src]
impl Clone for Operation
[src]
fn clone(&self) -> Operation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more