pub struct Collection<'a, T: Typesense> { /* private fields */ }Implementations§
Source§impl<'a, T: Typesense> Collection<'a, T>
impl<'a, T: Typesense> Collection<'a, T>
pub async fn documents(&self) -> Documents<'_, T>
pub async fn retreive(&self) -> Result<CollectionResponse, Error>
pub async fn create(&self) -> Result<CollectionResponse, Error>
pub async fn update( &self, fields: Vec<OwnedField>, ) -> Result<CollectionUpdate, Error>
pub async fn delete(&self) -> Result<CollectionResponse, Error>
Trait Implementations§
Source§impl<'a, T: Clone + Typesense> Clone for Collection<'a, T>
impl<'a, T: Clone + Typesense> Clone for Collection<'a, T>
Source§fn clone(&self) -> Collection<'a, T>
fn clone(&self) -> Collection<'a, T>
Returns a duplicate of the value. Read more
1.0.0 · 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<'a, T> Freeze for Collection<'a, T>
impl<'a, T> !RefUnwindSafe for Collection<'a, T>
impl<'a, T> Send for Collection<'a, T>where
T: Send,
impl<'a, T> Sync for Collection<'a, T>where
T: Sync,
impl<'a, T> Unpin for Collection<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for Collection<'a, T>
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