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.
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
impl IndexOption
[src]
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 Clone for IndexOption
[src]fn clone(&self) -> IndexOption
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for IndexOption
impl RefUnwindSafe for IndexOption
impl Send for IndexOption
impl Send for IndexOption
impl Sync for IndexOption
impl Sync for IndexOption
impl Unpin for IndexOption
impl Unpin for IndexOption
impl UnwindSafe for IndexOption
impl UnwindSafe for IndexOption
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,