Struct mongodb::coll::options::IndexModel [] [src]

pub struct IndexModel {
    pub keys: Document,
    pub options: IndexOptions,
}

A single index model.

Fields

Methods

impl IndexModel
[src]

Returns the name of the index as specified by the options, or as automatically generated using the keys.

Generates the index name from keys. Auto-generated names have the form "key1_val1_key2_val2..."

Converts the model to its BSON document representation.

Trait Implementations

impl Clone for IndexModel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for IndexModel
[src]

Formats the value using the given formatter.