pub fn ensure_skiplist_index<Fields>(
        &self,
        fields: Fields,
        unique: bool,
        sparse: bool,
        deduplicate: bool,
    ) -> Result<Index>
    where
        Fields: IntoIterator<Item = String>,
    {
        self.execute(CreateIndex::new(
            self.name(),
            NewSkipListIndex::new(fields, unique, sparse, deduplicate),
        ))
    }
/// Creates a skip list index for this collection if it does not exist
/// already.
///
/// # Arguments
///
/// * `fields` : A list of attribute paths
/// * `unique` : Whether a unique index shall be created
/// * `sparse` : A sparse index excludes documents from the index if they
///   that do not contain at least one of the specified index attributes
///   (i.e. fields) or that have a value of null in any of the specified
///   index attributes
/// * `deduplicate` : Whether to use deduplication of array values
Creates a skip list index for this collection if it does not exist
already.
Creates a skip list index for this collection if it does not exist already .
pub fn ensure_skiplist_index<Fields>(
        &self,
        fields: Fields,
        unique: bool,
        sparse: bool,
        deduplicate: bool,
    ) -> Result<Index>
    where
        Fields: IntoIterator<Item = String>,
    {
        self.execute(CreateIndex::new(
            self.name(),
            NewSkipListIndex::new(fields, unique, sparse, deduplicate),
        ))
    }
pub fn ensure_skiplist_index < Fields > ( & self , fields : Fields , unique : bool , sparse : bool , deduplicate : bool , ) -> Result < Index > where Fields : IntoIterator < Item = String > , { self . execute ( CreateIndex :: new ( self . name ( ) , NewSkipListIndex :: new ( fields , unique , sparse , deduplicate ) , ) ) }
Creates a skip list index for this collection if it does not exist
already.
Creates a skip list index for this collection if it does not exist already .
&self
fields
Fields
unique
bool
sparse
bool
deduplicate
bool
&self
fields
Fields
unique
bool
sparse
bool
deduplicate
bool