pub struct MongoDbShardKeySetting {
pub fields: Vec<MongoDbShardKeyField>,
pub is_unique: bool,
}
Expand description
Describes a MongoDB shard key
Fields§
§fields: Vec<MongoDbShardKeyField>
The fields within the shard key
is_unique: bool
Whether the shard key is unique
Implementations§
Source§impl MongoDbShardKeySetting
impl MongoDbShardKeySetting
pub fn new(fields: Vec<MongoDbShardKeyField>, is_unique: bool) -> Self
Trait Implementations§
Source§impl Clone for MongoDbShardKeySetting
impl Clone for MongoDbShardKeySetting
Source§fn clone(&self) -> MongoDbShardKeySetting
fn clone(&self) -> MongoDbShardKeySetting
Returns a duplicate 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 for MongoDbShardKeySetting
impl PartialEq for MongoDbShardKeySetting
Source§impl Serialize for MongoDbShardKeySetting
impl Serialize for MongoDbShardKeySetting
impl StructuralPartialEq for MongoDbShardKeySetting
Auto Trait Implementations§
impl Freeze for MongoDbShardKeySetting
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