Struct mongodb::results::DatabaseSpecification
source · [−]#[non_exhaustive]pub struct DatabaseSpecification {
pub name: String,
pub size_on_disk: u64,
pub empty: bool,
pub shards: Option<Document>,
}
Expand description
A struct modeling the information about an individual database returned from
Client::list_databases
.
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 database.
size_on_disk: u64
The amount of disk space in bytes that is consumed by the database.
empty: bool
Whether the database has any data.
shards: Option<Document>
For sharded clusters, this field includes a document which maps each shard to the size in
bytes of the database on disk on that shard. For non sharded environments, this field
is None
.
Trait Implementations
sourceimpl Clone for DatabaseSpecification
impl Clone for DatabaseSpecification
sourcefn clone(&self) -> DatabaseSpecification
fn clone(&self) -> DatabaseSpecification
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 DatabaseSpecification
impl Debug for DatabaseSpecification
sourceimpl<'de> Deserialize<'de> for DatabaseSpecification
impl<'de> Deserialize<'de> for DatabaseSpecification
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 PartialEq<DatabaseSpecification> for DatabaseSpecification
impl PartialEq<DatabaseSpecification> for DatabaseSpecification
sourcefn eq(&self, other: &DatabaseSpecification) -> bool
fn eq(&self, other: &DatabaseSpecification) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DatabaseSpecification) -> bool
fn ne(&self, other: &DatabaseSpecification) -> bool
This method tests for !=
.
sourceimpl Serialize for DatabaseSpecification
impl Serialize for DatabaseSpecification
impl StructuralPartialEq for DatabaseSpecification
Auto Trait Implementations
impl RefUnwindSafe for DatabaseSpecification
impl Send for DatabaseSpecification
impl Sync for DatabaseSpecification
impl Unpin for DatabaseSpecification
impl UnwindSafe for DatabaseSpecification
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