pub struct Collections<'a> { /* private fields */ }Expand description
Collections resource for managing document collections
Implementations§
Source§impl<'a> Collections<'a>
 
impl<'a> Collections<'a>
Sourcepub async fn delete(
    &self,
    collection_name: impl Into<String>,
) -> Result<CollectionResponse>
 
pub async fn delete( &self, collection_name: impl Into<String>, ) -> Result<CollectionResponse>
Sourcepub async fn get_list(&self) -> Result<CollectionListResponse>
 
pub async fn get_list(&self) -> Result<CollectionListResponse>
Get list of all collections
§Example
let client = Client::from_env()?;
let response = client.collections().get_list().await?;
for collection in response.collections {
    println!("Collection: {}", collection);
}Auto Trait Implementations§
impl<'a> Freeze for Collections<'a>
impl<'a> !RefUnwindSafe for Collections<'a>
impl<'a> Send for Collections<'a>
impl<'a> Sync for Collections<'a>
impl<'a> Unpin for Collections<'a>
impl<'a> !UnwindSafe for Collections<'a>
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