Struct CollectionsApiClient

Source
pub struct CollectionsApiClient { /* private fields */ }

Implementations§

Source§

impl CollectionsApiClient

Source

pub fn new(configuration: Arc<Configuration>) -> Self

Trait Implementations§

Source§

impl CollectionsApi for CollectionsApiClient

Source§

fn create_collection<'life0, 'async_trait>( &'life0 self, params: CreateCollectionParams, ) -> Pin<Box<dyn Future<Output = Result<CollectionResponse, Error<CreateCollectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

When a collection is created, we give it a name and describe the fields that will be indexed from the documents added to the collection.

Source§

fn delete_collection<'life0, 'async_trait>( &'life0 self, params: DeleteCollectionParams, ) -> Pin<Box<dyn Future<Output = Result<CollectionResponse, Error<DeleteCollectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Permanently drops a collection. This action cannot be undone. For large collections, this might have an impact on read latencies.

Source§

fn get_alias<'life0, 'async_trait>( &'life0 self, params: GetAliasParams, ) -> Pin<Box<dyn Future<Output = Result<CollectionAlias, Error<GetAliasError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Find out which collection an alias points to by fetching it

Source§

fn get_aliases<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<CollectionAliasesResponse, Error<GetAliasesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List all aliases and the corresponding collections that they map to.

Source§

fn get_collection<'life0, 'async_trait>( &'life0 self, params: GetCollectionParams, ) -> Pin<Box<dyn Future<Output = Result<CollectionResponse, Error<GetCollectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieve the details of a collection, given its name.

Source§

fn get_collections<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<CollectionResponse>, Error<GetCollectionsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first.

Source§

fn update_collection<'life0, 'async_trait>( &'life0 self, params: UpdateCollectionParams, ) -> Pin<Box<dyn Future<Output = Result<CollectionUpdateSchema, Error<UpdateCollectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update a collection’s schema to modify the fields and their types.

Source§

fn upsert_alias<'life0, 'async_trait>( &'life0 self, params: UpsertAliasParams, ) -> Pin<Box<dyn Future<Output = Result<CollectionAlias, Error<UpsertAliasError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create or update a collection alias. An alias is a virtual collection name that points to a real collection. If you’re familiar with symbolic links on Linux, it’s very similar to that. Aliases are useful when you want to reindex your data in the background on a new collection and switch your application to it without any changes to your code.

Source§

fn delete_alias<'life0, 'async_trait>( &'life0 self, params: DeleteAliasParams, ) -> Pin<Box<dyn Future<Output = Result<CollectionAlias, Error<DeleteAliasError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,