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

Methods

impl ConnectionString
[src]

Creates a new ConnectionString for a single, unreplicated host.

Trait Implementations

impl Debug for ConnectionString
[src]

Formats the value using the given formatter.

impl Clone for ConnectionString
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ConnectionString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ConnectionString
[src]