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