pub struct MongoDbShardKeySetting {
pub fields: Vec<MongoDbShardKeyField>,
pub is_unique: Option<bool>,
}
Expand description
Describes a MongoDB shard key
Fields§
§fields: Vec<MongoDbShardKeyField>
The fields within the shard key
is_unique: Option<bool>
Whether the shard key is unique
Implementations§
source§impl MongoDbShardKeySetting
impl MongoDbShardKeySetting
pub fn new(fields: Vec<MongoDbShardKeyField>) -> Self
Trait Implementations§
source§impl Clone for MongoDbShardKeySetting
impl Clone for MongoDbShardKeySetting
source§fn clone(&self) -> MongoDbShardKeySetting
fn clone(&self) -> MongoDbShardKeySetting
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 MongoDbShardKeySetting
impl Debug for MongoDbShardKeySetting
source§impl<'de> Deserialize<'de> for MongoDbShardKeySetting
impl<'de> Deserialize<'de> for MongoDbShardKeySetting
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<MongoDbShardKeySetting> for MongoDbShardKeySetting
impl PartialEq<MongoDbShardKeySetting> for MongoDbShardKeySetting
source§fn eq(&self, other: &MongoDbShardKeySetting) -> bool
fn eq(&self, other: &MongoDbShardKeySetting) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MongoDbShardKeySetting
impl Serialize for MongoDbShardKeySetting
impl StructuralPartialEq for MongoDbShardKeySetting
Auto Trait Implementations§
impl RefUnwindSafe for MongoDbShardKeySetting
impl Send for MongoDbShardKeySetting
impl Sync for MongoDbShardKeySetting
impl Unpin for MongoDbShardKeySetting
impl UnwindSafe for MongoDbShardKeySetting
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