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

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]

Performs copy-assignment from source. Read more

impl PartialEq<IndexModel> for IndexModel
[src]

impl Debug for IndexModel
[src]

Auto Trait Implementations

impl Send for IndexModel

impl Sync for IndexModel

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

impl<T> Same for T

Should always be Self