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

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

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

Required Associated Constants§

source

const INDEX_STR: &'static str

Required Methods§

source

fn generate_settings() -> Settings

source

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

Provided Methods§

source

fn index(client: &Client) -> Index

Implementors§