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, }, }
Expand description
Option to be used at index creation.
Variants
Enable background builds
Creates a unique index
Name(String)
Name of the index
Only references documents that match the filter expression
Only references documents with the specified field
ExpireAfterSeconds(i32)
TTL to control how long data is retained in the collectino
Configure the storage engine
Specifies the collation
Specify a custom index option. This is present to provide forwards compatibility.
Show fields
Fields of Custom
name: String
value: Bson
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IndexOption
impl Send for IndexOption
impl Sync for IndexOption
impl Unpin for IndexOption
impl UnwindSafe for IndexOption
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V