Struct mongodb::connstring::ConnectionOptions
[−]
[src]
pub struct ConnectionOptions { pub options: BTreeMap<String, String>, pub read_pref_tags: Vec<String>, }
Encapsulates the options and read preference tags of a MongoDB connection.
Fields
options: BTreeMap<String, String>
Methods
impl ConnectionOptions
[src]
fn new(options: BTreeMap<String, String>,
read_pref_tags: Vec<String>)
-> ConnectionOptions
read_pref_tags: Vec<String>)
-> ConnectionOptions
Creates a new ConnectionOptions struct.
fn get(&self, key: &str) -> Option<&String>
Trait Implementations
impl Debug for ConnectionOptions
[src]
impl Clone for ConnectionOptions
[src]
fn clone(&self) -> ConnectionOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for ConnectionOptions
[src]
fn eq(&self, __arg_0: &ConnectionOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConnectionOptions) -> bool
This method tests for !=
.