Struct mongors::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]
impl ConnectionOptions
pub fn new(
options: BTreeMap<String, String>,
read_pref_tags: Vec<String>
) -> ConnectionOptions
[src]
pub fn new(
options: BTreeMap<String, String>,
read_pref_tags: Vec<String>
) -> ConnectionOptions
Creates a new ConnectionOptions struct.
pub fn get(&self, key: &str) -> Option<&String>
[src]
pub fn get(&self, key: &str) -> Option<&String>
Trait Implementations
impl Debug for ConnectionOptions
[src]
impl Debug for ConnectionOptions
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ConnectionOptions
[src]
impl Clone for ConnectionOptions
fn clone(&self) -> ConnectionOptions
[src]
fn clone(&self) -> ConnectionOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ConnectionOptions
[src]
impl PartialEq for ConnectionOptions
fn eq(&self, other: &ConnectionOptions) -> bool
[src]
fn eq(&self, other: &ConnectionOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ConnectionOptions) -> bool
[src]
fn ne(&self, other: &ConnectionOptions) -> bool
This method tests for !=
.
impl Eq for ConnectionOptions
[src]
impl Eq for ConnectionOptions
Auto Trait Implementations
impl Send for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Sync for ConnectionOptions