[−][src]Struct couchbase::Collection
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]
&'_ self,
id: S,
options: GetOptions
) -> CouchbaseResult<GetResult>
pub async fn get_and_lock<S: Into<String>, '_>(
&'_ self,
id: S,
lock_time: Duration,
options: GetAndLockOptions
) -> CouchbaseResult<GetResult>
[src]
&'_ self,
id: S,
lock_time: Duration,
options: GetAndLockOptions
) -> CouchbaseResult<GetResult>
pub async fn get_and_touch<S: Into<String>, '_>(
&'_ self,
id: S,
expiry: Duration,
options: GetAndTouchOptions
) -> CouchbaseResult<GetResult>
[src]
&'_ self,
id: S,
expiry: Duration,
options: GetAndTouchOptions
) -> CouchbaseResult<GetResult>
pub async fn exists<S: Into<String>, '_>(
&'_ self,
id: S,
options: ExistsOptions
) -> CouchbaseResult<ExistsResult>
[src]
&'_ self,
id: S,
options: ExistsOptions
) -> CouchbaseResult<ExistsResult>
pub async fn upsert<S: Into<String>, T, '_>(
&'_ self,
id: S,
content: T,
options: UpsertOptions
) -> CouchbaseResult<MutationResult> where
T: Serialize,
[src]
&'_ self,
id: S,
content: T,
options: UpsertOptions
) -> CouchbaseResult<MutationResult> where
T: Serialize,
pub async fn insert<S: Into<String>, T, '_>(
&'_ self,
id: S,
content: T,
options: InsertOptions
) -> CouchbaseResult<MutationResult> where
T: Serialize,
[src]
&'_ self,
id: S,
content: T,
options: InsertOptions
) -> CouchbaseResult<MutationResult> where
T: Serialize,
pub async fn replace<S: Into<String>, T, '_>(
&'_ self,
id: S,
content: T,
options: ReplaceOptions
) -> CouchbaseResult<MutationResult> where
T: Serialize,
[src]
&'_ self,
id: S,
content: T,
options: ReplaceOptions
) -> CouchbaseResult<MutationResult> where
T: Serialize,
pub async fn remove<S: Into<String>, '_>(
&'_ self,
id: S,
options: RemoveOptions
) -> CouchbaseResult<MutationResult>
[src]
&'_ self,
id: S,
options: RemoveOptions
) -> CouchbaseResult<MutationResult>
pub async fn lookup_in<S: Into<String>, '_>(
&'_ self,
id: S,
specs: Vec<LookupInSpec>,
options: LookupInOptions
) -> CouchbaseResult<LookupInResult>
[src]
&'_ self,
id: S,
specs: Vec<LookupInSpec>,
options: LookupInOptions
) -> CouchbaseResult<LookupInResult>
pub async fn mutate_in<S: Into<String>, '_>(
&'_ self,
id: S,
specs: Vec<MutateInSpec>,
options: MutateInOptions
) -> CouchbaseResult<MutateInResult>
[src]
&'_ self,
id: S,
specs: Vec<MutateInSpec>,
options: MutateInOptions
) -> CouchbaseResult<MutateInResult>
Auto Trait Implementations
impl !RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl !UnwindSafe for Collection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,