Trait AttachmentClient

Source
pub trait AttachmentClient<C, D, COLL, DOC>: HasDocumentClient<C, D, COLL, DOC>
where C: CosmosClient, D: DatabaseClient<C>, COLL: CollectionClient<C, D>, DOC: DocumentClient<C, D, COLL>,
{ // Required methods fn attachment_name(&self) -> &str; fn create_slug( &self, ) -> CreateSlugAttachmentBuilder<'_, '_, C, D, COLL, DOC, No, No>; fn replace_slug( &self, ) -> ReplaceSlugAttachmentBuilder<'_, '_, C, D, COLL, DOC, No, No>; fn create_reference( &self, ) -> CreateReferenceAttachmentBuilder<'_, '_, C, D, COLL, DOC, No, No>; fn replace_reference( &self, ) -> ReplaceReferenceAttachmentBuilder<'_, '_, C, D, COLL, DOC, No, No>; fn delete(&self) -> DeleteAttachmentBuilder<'_, '_, C, D, COLL, DOC>; fn get(&self) -> GetAttachmentBuilder<'_, '_, C, D, COLL, DOC>; // Provided methods fn prepare_request(&self, method: Method) -> Builder { ... } fn prepare_request_with_attachment_name(&self, method: Method) -> Builder { ... } }

Required Methods§

Source

fn attachment_name(&self) -> &str

Source

fn create_slug( &self, ) -> CreateSlugAttachmentBuilder<'_, '_, C, D, COLL, DOC, No, No>

Source

fn replace_slug( &self, ) -> ReplaceSlugAttachmentBuilder<'_, '_, C, D, COLL, DOC, No, No>

Source

fn create_reference( &self, ) -> CreateReferenceAttachmentBuilder<'_, '_, C, D, COLL, DOC, No, No>

Source

fn replace_reference( &self, ) -> ReplaceReferenceAttachmentBuilder<'_, '_, C, D, COLL, DOC, No, No>

Source

fn delete(&self) -> DeleteAttachmentBuilder<'_, '_, C, D, COLL, DOC>

Source

fn get(&self) -> GetAttachmentBuilder<'_, '_, C, D, COLL, DOC>

Provided Methods§

Implementors§

Source§

impl<'a, C, D, COLL, DOC> AttachmentClient<C, D, COLL, DOC> for AttachmentStruct<'a, C, D, COLL, DOC>
where C: CosmosClient + Clone, D: DatabaseClient<C> + Clone, COLL: CollectionClient<C, D> + Clone, DOC: DocumentClient<C, D, COLL> + Clone,