Trait WithCollectionClient

Source
pub trait WithCollectionClient<'a, C, D, COLL>:
    Debug
    + Send
    + Sync
where C: CosmosClient, D: DatabaseClient<C>, COLL: CollectionClient<C, D>,
{ // Required method fn with_collection_client<IntoCowStr>( &'a self, collection_name: IntoCowStr, ) -> COLL where IntoCowStr: Into<Cow<'a, str>>; }

Required Methods§

Source

fn with_collection_client<IntoCowStr>( &'a self, collection_name: IntoCowStr, ) -> COLL
where IntoCowStr: Into<Cow<'a, str>>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, C> WithCollectionClient<'a, C, DatabaseStruct<'a, C>, CollectionStruct<'a, C, DatabaseStruct<'a, C>>> for DatabaseStruct<'a, C>
where C: CosmosClient + Clone,