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

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

A single index model.

Fields

Methods

impl IndexModel
[src]

[src]

[src]

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

[src]

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

[src]

Converts the model to its BSON document representation.

Trait Implementations

impl Clone for IndexModel
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for IndexModel
[src]

[src]

Formats the value using the given formatter.