[][src]Struct couchbase::Collection

pub struct Collection { /* fields omitted */ }

Primary API to access Key/Value operations

Implementations

impl Collection[src]

pub fn name(&self) -> &str[src]

The name of the collection

pub async fn get<S: Into<String>, '_>(
    &'_ self,
    id: S,
    options: GetOptions
) -> CouchbaseResult<GetResult>
[src]

pub async fn get_and_lock<S: Into<String>, '_>(
    &'_ self,
    id: S,
    lock_time: Duration,
    options: GetAndLockOptions
) -> CouchbaseResult<GetResult>
[src]

pub async fn get_and_touch<S: Into<String>, '_>(
    &'_ self,
    id: S,
    expiry: Duration,
    options: GetAndTouchOptions
) -> CouchbaseResult<GetResult>
[src]

pub async fn exists<S: Into<String>, '_>(
    &'_ self,
    id: S,
    options: ExistsOptions
) -> CouchbaseResult<ExistsResult>
[src]

pub async fn upsert<S: Into<String>, T, '_>(
    &'_ self,
    id: S,
    content: T,
    options: UpsertOptions
) -> CouchbaseResult<MutationResult> where
    T: Serialize
[src]

pub async fn insert<S: Into<String>, T, '_>(
    &'_ self,
    id: S,
    content: T,
    options: InsertOptions
) -> CouchbaseResult<MutationResult> where
    T: Serialize
[src]

pub async fn replace<S: Into<String>, T, '_>(
    &'_ self,
    id: S,
    content: T,
    options: ReplaceOptions
) -> CouchbaseResult<MutationResult> where
    T: Serialize
[src]

pub async fn remove<S: Into<String>, '_>(
    &'_ self,
    id: S,
    options: RemoveOptions
) -> CouchbaseResult<MutationResult>
[src]

pub async fn lookup_in<S: Into<String>, '_>(
    &'_ self,
    id: S,
    specs: Vec<LookupInSpec>,
    options: LookupInOptions
) -> CouchbaseResult<LookupInResult>
[src]

pub async fn mutate_in<S: Into<String>, '_>(
    &'_ self,
    id: S,
    specs: Vec<MutateInSpec>,
    options: MutateInOptions
) -> CouchbaseResult<MutateInResult>
[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>,