Struct mongodb::results::CollectionSpecification
source · [−]#[non_exhaustive]pub struct CollectionSpecification {
pub name: String,
pub collection_type: CollectionType,
pub options: CreateCollectionOptions,
pub info: CollectionSpecificationInfo,
pub id_index: Option<Document>,
}
Expand description
Information about a collection as reported by
Database::list_collections
.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
The name of the collection.
collection_type: CollectionType
Type of the data store.
options: CreateCollectionOptions
The options used to create the collection.
info: CollectionSpecificationInfo
Additional info pertaining to the collection.
id_index: Option<Document>
Provides information on the _id index for the collection
For views, this is None
.
Trait Implementations
sourceimpl Clone for CollectionSpecification
impl Clone for CollectionSpecification
sourcefn clone(&self) -> CollectionSpecification
fn clone(&self) -> CollectionSpecification
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CollectionSpecification
impl Debug for CollectionSpecification
sourceimpl<'de> Deserialize<'de> for CollectionSpecification
impl<'de> Deserialize<'de> for CollectionSpecification
sourcefn 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
sourceimpl Serialize for CollectionSpecification
impl Serialize for CollectionSpecification
Auto Trait Implementations
impl RefUnwindSafe for CollectionSpecification
impl Send for CollectionSpecification
impl Sync for CollectionSpecification
impl Unpin for CollectionSpecification
impl UnwindSafe for CollectionSpecification
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more