Struct mongodb::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]
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 Clone for ConnectionString[src]
fn clone(&self) -> ConnectionString
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 ConnectionString[src]
fn eq(&self, __arg_0: &ConnectionString) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConnectionString) -> bool
This method tests for !=.