Enum mungos::options::IndexVersion
source · [−]#[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.
V0
👎 Deprecated
Version 0.
V1
Version 1.
V2
Version 2.
Custom(u32)
any future index versions which may be added to new versions of MongoDB.
Trait Implementations
sourceimpl Clone for IndexVersion
impl Clone for IndexVersion
sourcefn clone(&self) -> IndexVersion
fn clone(&self) -> IndexVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IndexVersion
impl Debug for IndexVersion
sourceimpl<'de> Deserialize<'de> for IndexVersion
impl<'de> Deserialize<'de> for IndexVersion
sourcefn deserialize<D>(
deserializer: D
) -> Result<IndexVersion, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<IndexVersion, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for IndexVersion
impl Serialize for IndexVersion
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more