Struct mongodb::results::CollectionSpecificationInfo
source · [−]#[non_exhaustive]pub struct CollectionSpecificationInfo {
pub read_only: bool,
pub uuid: Option<Binary>,
}
Expand description
Info about the collection that is contained in the CollectionSpecification::info
field of a
specification returned from
Database::list_collections
.
See the MongoDB manual for more information.
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.read_only: bool
Indicates whether or not the data store is read-only.
uuid: Option<Binary>
The collection’s UUID - once established, this does not change and remains the same across
replica set members and shards in a sharded cluster. If the data store is a view, this
field is None
.
Trait Implementations
sourceimpl Clone for CollectionSpecificationInfo
impl Clone for CollectionSpecificationInfo
sourcefn clone(&self) -> CollectionSpecificationInfo
fn clone(&self) -> CollectionSpecificationInfo
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 CollectionSpecificationInfo
impl Debug for CollectionSpecificationInfo
sourceimpl<'de> Deserialize<'de> for CollectionSpecificationInfo
impl<'de> Deserialize<'de> for CollectionSpecificationInfo
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
Auto Trait Implementations
impl RefUnwindSafe for CollectionSpecificationInfo
impl Send for CollectionSpecificationInfo
impl Sync for CollectionSpecificationInfo
impl Unpin for CollectionSpecificationInfo
impl UnwindSafe for CollectionSpecificationInfo
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