[][src]Struct mongodb_cwal::connstring::ConnectionString

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]

pub fn new(host_name: &str, port: u16) -> ConnectionString[src]

Creates a new ConnectionString for a single, unreplicated host.

Trait Implementations

impl Clone for ConnectionString[src]

impl Eq for ConnectionString[src]

impl PartialEq<ConnectionString> for ConnectionString[src]

impl Debug for ConnectionString[src]

impl StructuralPartialEq for ConnectionString[src]

impl StructuralEq for ConnectionString[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self