Trait IntoDocumentClient

Source
pub trait IntoDocumentClient<'b, C, D, COLL, DOC>:
    Debug
    + Send
    + Sync
where C: CosmosClient, D: DatabaseClient<C>, COLL: CollectionClient<C, D>, DOC: DocumentClient<C, D, COLL>,
{ // Required method fn into_document_client<DocName>( self, document_name: DocName, partition_keys: PartitionKeys, ) -> DOC where DocName: Into<Cow<'b, str>>; }

Required Methods§

Source

fn into_document_client<DocName>( self, document_name: DocName, partition_keys: PartitionKeys, ) -> DOC
where DocName: Into<Cow<'b, 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, 'b, C, D> IntoDocumentClient<'b, C, D, CollectionStruct<'a, C, D>, DocumentStruct<'a, 'b, C, D, CollectionStruct<'a, C, D>>> for CollectionStruct<'a, C, D>
where C: CosmosClient + Clone, D: DatabaseClient<C> + Clone,