Enum mungos::options::TextIndexVersion
source · [−]pub enum TextIndexVersion {
V1,
V2,
V3,
Custom(u32),
}
Expand description
Specify the version for a text
index. For more information, see Versions.
Variants
V1
Version 1.
V2
Version 2.
V3
Version 3.
Custom(u32)
Specify a custom text index version. This is present to provide forwards compatibility with any future text index versions which may be added to new versions of MongoDB.
Trait Implementations
sourceimpl Clone for TextIndexVersion
impl Clone for TextIndexVersion
sourcefn clone(&self) -> TextIndexVersion
fn clone(&self) -> TextIndexVersion
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 moresourceimpl Debug for TextIndexVersion
impl Debug for TextIndexVersion
sourceimpl<'de> Deserialize<'de> for TextIndexVersion
impl<'de> Deserialize<'de> for TextIndexVersion
sourcefn deserialize<D>(
deserializer: D
) -> Result<TextIndexVersion, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<TextIndexVersion, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for TextIndexVersion
impl Serialize for TextIndexVersion
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 TextIndexVersion
impl Send for TextIndexVersion
impl Sync for TextIndexVersion
impl Unpin for TextIndexVersion
impl UnwindSafe for TextIndexVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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