Enum mongodm::index::IndexOption[][src]

pub enum IndexOption {
    Background,
    Unique,
    Name(String),
    PartialFilterExpression(Document),
    Sparse,
    ExpireAfterSeconds(i32),
    StorageEngine(Document),
    Collation(Document),
    Custom {
        name: String,
        value: Bson,
    },
}

Option to be used at index creation.

Mongo manual

Variants

Background

Enable background builds

Unique

Creates a unique index

Name(String)

Name of the index

PartialFilterExpression(Document)

Only references documents that match the filter expression

Sparse

Only references documents with the specified field

ExpireAfterSeconds(i32)

TTL to control how long data is retained in the collectino

StorageEngine(Document)

Configure the storage engine

Collation(Document)

Specifies the collation

Custom

Specify a custom index option. This is present to provide forwards compatibility.

Fields of Custom

name: Stringvalue: Bson

Implementations

impl IndexOption[src]

pub fn name(&self) -> &str[src]

pub fn into_value(self) -> Bson[src]

pub fn into_key_value(self) -> (String, Bson)[src]

Trait Implementations

impl Clone for IndexOption[src]

impl Debug for IndexOption[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,