pub struct SchemaIndex {
pub name: String,
pub keys: Vec<(String, ParseValue)>,
}Expand description
One entry of the schema API’s indexes block: a name, and the key document under it.
The value of each key is passed through rather than normalized. Mongo reads 1 and -1 as
ascending and descending, and "text", "2dsphere" and "hashed" as index types, and which
of those a deployment used is recorded in _SCHEMA for every other node to read.
Fields§
§name: String§keys: Vec<(String, ParseValue)>Trait Implementations§
Source§impl Clone for SchemaIndex
impl Clone for SchemaIndex
Source§fn clone(&self) -> SchemaIndex
fn clone(&self) -> SchemaIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SchemaIndex
impl RefUnwindSafe for SchemaIndex
impl Send for SchemaIndex
impl Sync for SchemaIndex
impl Unpin for SchemaIndex
impl UnsafeUnpin for SchemaIndex
impl UnwindSafe for SchemaIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more