pub struct MongoDbShardKeyField {
pub name: String,
pub order: Order,
}
Expand description
Describes a field reference within a MongoDB shard key
Fields§
§name: String
The name of the field
order: Order
The field ordering
Implementations§
Trait Implementations§
source§impl Clone for MongoDbShardKeyField
impl Clone for MongoDbShardKeyField
source§fn clone(&self) -> MongoDbShardKeyField
fn clone(&self) -> MongoDbShardKeyField
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MongoDbShardKeyField
impl Debug for MongoDbShardKeyField
source§impl<'de> Deserialize<'de> for MongoDbShardKeyField
impl<'de> Deserialize<'de> for MongoDbShardKeyField
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<MongoDbShardKeyField> for MongoDbShardKeyField
impl PartialEq<MongoDbShardKeyField> for MongoDbShardKeyField
source§fn eq(&self, other: &MongoDbShardKeyField) -> bool
fn eq(&self, other: &MongoDbShardKeyField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MongoDbShardKeyField
impl Serialize for MongoDbShardKeyField
impl StructuralPartialEq for MongoDbShardKeyField
Auto Trait Implementations§
impl RefUnwindSafe for MongoDbShardKeyField
impl Send for MongoDbShardKeyField
impl Sync for MongoDbShardKeyField
impl Unpin for MongoDbShardKeyField
impl UnwindSafe for MongoDbShardKeyField
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