Struct mongors::connstring::ConnectionString [−][src]
pub struct ConnectionString { pub hosts: Vec<Host>, pub string: Option<String>, pub user: Option<String>, pub password: Option<String>, pub database: Option<String>, pub collection: Option<String>, pub options: Option<ConnectionOptions>, }
Encapsulates information for connection to a single MongoDB host or replicated set.
Fields
hosts: Vec<Host>
string: Option<String>
user: Option<String>
password: Option<String>
database: Option<String>
collection: Option<String>
options: Option<ConnectionOptions>
Methods
impl ConnectionString
[src]
impl ConnectionString
pub fn new(host_name: &str, port: u16) -> ConnectionString
[src]
pub fn new(host_name: &str, port: u16) -> ConnectionString
Creates a new ConnectionString for a single, unreplicated host.
Trait Implementations
impl Debug for ConnectionString
[src]
impl Debug for ConnectionString
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 ConnectionString
[src]
impl Clone for ConnectionString
fn clone(&self) -> ConnectionString
[src]
fn clone(&self) -> ConnectionString
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 ConnectionString
[src]
impl PartialEq for ConnectionString
fn eq(&self, other: &ConnectionString) -> bool
[src]
fn eq(&self, other: &ConnectionString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ConnectionString) -> bool
[src]
fn ne(&self, other: &ConnectionString) -> bool
This method tests for !=
.
impl Eq for ConnectionString
[src]
impl Eq for ConnectionString
Auto Trait Implementations
impl Send for ConnectionString
impl Send for ConnectionString
impl Sync for ConnectionString
impl Sync for ConnectionString