pub struct MongoDbCollectionSettings {
pub can_delete: Option<bool>,
pub shard_key: Option<MongoDbShardKeySetting>,
pub target_r_us: Option<i32>,
}Expand description
Describes how an individual MongoDB collection should be migrated
Fields§
§can_delete: Option<bool>Whether the migrator is allowed to drop the target collection in the course of performing a migration. The default is true.
shard_key: Option<MongoDbShardKeySetting>Describes a MongoDB shard key
target_r_us: Option<i32>The RUs that should be configured on a CosmosDB target, or null to use the default. This has no effect on non-CosmosDB targets.
Implementations§
Trait Implementations§
source§impl Clone for MongoDbCollectionSettings
impl Clone for MongoDbCollectionSettings
source§fn clone(&self) -> MongoDbCollectionSettings
fn clone(&self) -> MongoDbCollectionSettings
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 MongoDbCollectionSettings
impl Debug for MongoDbCollectionSettings
source§impl Default for MongoDbCollectionSettings
impl Default for MongoDbCollectionSettings
source§fn default() -> MongoDbCollectionSettings
fn default() -> MongoDbCollectionSettings
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MongoDbCollectionSettings
impl<'de> Deserialize<'de> for MongoDbCollectionSettings
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<MongoDbCollectionSettings> for MongoDbCollectionSettings
impl PartialEq<MongoDbCollectionSettings> for MongoDbCollectionSettings
source§fn eq(&self, other: &MongoDbCollectionSettings) -> bool
fn eq(&self, other: &MongoDbCollectionSettings) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MongoDbCollectionSettings
Auto Trait Implementations§
impl RefUnwindSafe for MongoDbCollectionSettings
impl Send for MongoDbCollectionSettings
impl Sync for MongoDbCollectionSettings
impl Unpin for MongoDbCollectionSettings
impl UnwindSafe for MongoDbCollectionSettings
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