Enum mongodb::options::IndexVersion [−][src]
#[non_exhaustive]
pub enum IndexVersion {
V0,
V1,
V2,
Custom(u32),
}
Expand description
The version of the index. Version 0 Indexes are disallowed as of MongoDB 3.2.
See Version 0 Indexes for more information.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
👎 Deprecated
Version 0.
Version 1.
Version 2.
Custom(u32)
any future index versions which may be added to new versions of MongoDB.
Tuple Fields of Custom
0: u32
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for IndexVersion
impl Send for IndexVersion
impl Sync for IndexVersion
impl Unpin for IndexVersion
impl UnwindSafe for IndexVersion
Blanket Implementations
Mutably borrows from an owned value. Read more