Trait meilisearch_sdk::documents::IndexConfig

source ·
pub trait IndexConfig {
    const INDEX_STR: &'static str;

    // Required methods
    fn generate_settings() -> Settings;
    fn generate_index<'life0, 'async_trait, Http>(
        client: &'life0 Client<Http>,
    ) -> Pin<Box<dyn Future<Output = Result<Index<Http>, Task>> + 'async_trait>>
       where Http: 'async_trait + HttpClient,
             'life0: 'async_trait;

    // Provided method
    fn index<Http: HttpClient>(client: &Client<Http>) -> Index<Http> { ... }
}

Required Associated Constants§

source

const INDEX_STR: &'static str

Required Methods§

source

fn generate_settings() -> Settings

source

fn generate_index<'life0, 'async_trait, Http>( client: &'life0 Client<Http>, ) -> Pin<Box<dyn Future<Output = Result<Index<Http>, Task>> + 'async_trait>>
where Http: 'async_trait + HttpClient, 'life0: 'async_trait,

Provided Methods§

source

fn index<Http: HttpClient>(client: &Client<Http>) -> Index<Http>

Object Safety§

This trait is not object safe.

Implementors§