Struct mongo_driver::client::Uri
[−]
[src]
pub struct Uri { /* fields omitted */ }
Abstraction on top of MongoDB connection URI format.
Methods
impl Uri
[src]
pub fn new<T: Into<Vec<u8>>>(uri_string: T) -> Option<Uri>
[src]
Parses a string containing a MongoDB style URI connection string.
Returns None if the uri is not in the correct format, there is no further information available if this is not the case.
pub fn as_str<'a>(&'a self) -> Cow<'a, str>
[src]
pub fn get_database<'a>(&'a self) -> Option<Cow<'a, str>>
[src]
Trait Implementations
impl PartialEq for Uri
[src]
fn eq(&self, other: &Uri) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Debug for Uri
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Uri
[src]
fn clone(&self) -> Uri
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more