Trait DatabaseClient

Source
pub trait DatabaseClient<C>: HasCosmosClient<C>
where C: CosmosClient,
{ // Required methods fn database_name(&self) -> &str; fn get_database(&self) -> GetDatabaseBuilder<'_, '_, C>; fn list_collections(&self) -> ListCollectionsBuilder<'_, C>; fn create_collection( &self, ) -> CreateCollectionBuilder<'_, C, No, No, No, No>; fn delete_database(&self) -> DeleteDatabaseBuilder<'_, C>; fn list_users(&self) -> ListUsersBuilder<'_, '_, C>; // Provided methods fn prepare_request(&self, method: Method) -> Builder { ... } fn prepare_request_with_database_name(&self, method: Method) -> Builder { ... } }

Required Methods§

Provided Methods§

Implementors§

Source§

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