pub struct MongoDbCollectionInfo {
pub mongo_db_object_info: MongoDbObjectInfo,
pub database_name: String,
pub is_capped: bool,
pub is_system_collection: bool,
pub is_view: bool,
pub shard_key: Option<MongoDbShardKeyInfo>,
pub supports_sharding: bool,
pub view_of: Option<String>,
}
Expand description
Describes a supported collection within a MongoDB database
Fields§
§mongo_db_object_info: MongoDbObjectInfo
§database_name: String
The name of the database containing the collection
is_capped: bool
Whether the collection is a capped collection (i.e. whether it has a fixed size and acts like a circular buffer)
is_system_collection: bool
Whether the collection is system collection
is_view: bool
Whether the collection is a view of another collection
shard_key: Option<MongoDbShardKeyInfo>
Describes a MongoDB shard key
supports_sharding: bool
Whether the database has sharding enabled. Note that the migration task will enable sharding on the target if necessary.
view_of: Option<String>
The name of the collection that this is a view of, if IsView is true
Implementations§
Trait Implementations§
Source§impl Clone for MongoDbCollectionInfo
impl Clone for MongoDbCollectionInfo
Source§fn clone(&self) -> MongoDbCollectionInfo
fn clone(&self) -> MongoDbCollectionInfo
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 MongoDbCollectionInfo
impl Debug for MongoDbCollectionInfo
Source§impl<'de> Deserialize<'de> for MongoDbCollectionInfo
impl<'de> Deserialize<'de> for MongoDbCollectionInfo
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 MongoDbCollectionInfo
impl PartialEq for MongoDbCollectionInfo
Source§impl Serialize for MongoDbCollectionInfo
impl Serialize for MongoDbCollectionInfo
impl StructuralPartialEq for MongoDbCollectionInfo
Auto Trait Implementations§
impl Freeze for MongoDbCollectionInfo
impl RefUnwindSafe for MongoDbCollectionInfo
impl Send for MongoDbCollectionInfo
impl Sync for MongoDbCollectionInfo
impl Unpin for MongoDbCollectionInfo
impl UnwindSafe for MongoDbCollectionInfo
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