#[non_exhaustive]pub struct MongodbDatabase {
pub database: String,
pub collections: Vec<MongodbCollection>,
/* private fields */
}
Expand description
MongoDB Database.
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.database: String
Database name.
collections: Vec<MongodbCollection>
Collections in the database.
Implementations§
Source§impl MongodbDatabase
impl MongodbDatabase
pub fn new() -> Self
Sourcepub fn set_database<T: Into<String>>(self, v: T) -> Self
pub fn set_database<T: Into<String>>(self, v: T) -> Self
Sets the value of database.
Sourcepub fn set_collections<T, V>(self, v: T) -> Self
pub fn set_collections<T, V>(self, v: T) -> Self
Sets the value of collections.
Trait Implementations§
Source§impl Clone for MongodbDatabase
impl Clone for MongodbDatabase
Source§fn clone(&self) -> MongodbDatabase
fn clone(&self) -> MongodbDatabase
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 MongodbDatabase
impl Debug for MongodbDatabase
Source§impl Default for MongodbDatabase
impl Default for MongodbDatabase
Source§fn default() -> MongodbDatabase
fn default() -> MongodbDatabase
Returns the “default value” for a type. Read more
Source§impl Message for MongodbDatabase
impl Message for MongodbDatabase
Source§impl PartialEq for MongodbDatabase
impl PartialEq for MongodbDatabase
impl StructuralPartialEq for MongodbDatabase
Auto Trait Implementations§
impl Freeze for MongodbDatabase
impl RefUnwindSafe for MongodbDatabase
impl Send for MongodbDatabase
impl Sync for MongodbDatabase
impl Unpin for MongodbDatabase
impl UnwindSafe for MongodbDatabase
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