[][src]Enum couchbase::MutateInSpec

pub enum MutateInSpec {
    Replace {
        path: String,
        value: Vec<u8>,
    },
    Insert {
        path: String,
        value: Vec<u8>,
    },
    Upsert {
        path: String,
        value: Vec<u8>,
    },
    ArrayAddUnique {
        path: String,
        value: Vec<u8>,
    },
    Remove {
        path: String,
    },
    Counter {
        path: String,
        delta: i64,
    },
    ArrayAppend {
        path: String,
        value: Vec<u8>,
    },
    ArrayPrepend {
        path: String,
        value: Vec<u8>,
    },
    ArrayInsert {
        path: String,
        value: Vec<u8>,
    },
}

Variants

Replace

Fields of Replace

path: Stringvalue: Vec<u8>
Insert

Fields of Insert

path: Stringvalue: Vec<u8>
Upsert

Fields of Upsert

path: Stringvalue: Vec<u8>
ArrayAddUnique

Fields of ArrayAddUnique

path: Stringvalue: Vec<u8>
Remove

Fields of Remove

path: String
Counter

Fields of Counter

path: Stringdelta: i64
ArrayAppend

Fields of ArrayAppend

path: Stringvalue: Vec<u8>
ArrayPrepend

Fields of ArrayPrepend

path: Stringvalue: Vec<u8>
ArrayInsert

Fields of ArrayInsert

path: Stringvalue: Vec<u8>

Implementations

impl MutateInSpec[src]

pub fn replace<S: Into<String>, T>(path: S, content: T) -> Self where
    T: Into<Value>, 
[src]

pub fn insert<S: Into<String>, T>(path: S, content: T) -> Self where
    T: Into<Value>, 
[src]

pub fn upsert<S: Into<String>, T>(path: S, content: T) -> Self where
    T: Into<Value>, 
[src]

pub fn array_add_unique<S: Into<String>, T>(path: S, content: T) -> Self where
    T: Into<Value>, 
[src]

pub fn array_append<S: Into<String>, T>(path: S, content: Vec<T>) -> Self where
    T: Into<Value>, 
[src]

pub fn array_prepend<S: Into<String>, T>(path: S, content: Vec<T>) -> Self where
    T: Into<Value>, 
[src]

pub fn array_insert<S: Into<String>, T>(path: S, content: Vec<T>) -> Self where
    T: Into<Value>, 
[src]

pub fn remove<S: Into<String>>(path: S) -> Self[src]

pub fn increment<S: Into<String>>(path: S, delta: u32) -> Self[src]

pub fn decrement<S: Into<String>>(path: S, delta: u32) -> Self[src]

Trait Implementations

impl Debug for MutateInSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,