pub struct CollectionNamespace { /* private fields */ }Expand description
Collection management namespace
Implementations§
Source§impl CollectionNamespace
impl CollectionNamespace
Sourcepub async fn create(
&self,
config: CreateCollectionParams,
) -> Result<NewCollectionResponse>
pub async fn create( &self, config: CreateCollectionParams, ) -> Result<NewCollectionResponse>
Create a new collection
Sourcepub async fn list(&self) -> Result<Vec<GetCollectionsResponse>>
pub async fn list(&self) -> Result<Vec<GetCollectionsResponse>>
List all collections
Sourcepub async fn get(&self, collection_id: &str) -> Result<GetCollectionsResponse>
pub async fn get(&self, collection_id: &str) -> Result<GetCollectionsResponse>
Get a specific collection
Trait Implementations§
Source§impl Clone for CollectionNamespace
impl Clone for CollectionNamespace
Source§fn clone(&self) -> CollectionNamespace
fn clone(&self) -> CollectionNamespace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CollectionNamespace
impl !UnwindSafe for CollectionNamespace
impl Freeze for CollectionNamespace
impl Send for CollectionNamespace
impl Sync for CollectionNamespace
impl Unpin for CollectionNamespace
impl UnsafeUnpin for CollectionNamespace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more