[][src]Struct chesterfield::Client

pub struct Client { /* fields omitted */ }

An asynchronous CouchDB client

Methods

impl Client[src]

pub fn new(url: impl AsRef<str>) -> Result<Self, Error>[src]

Create a new asynchronous client.

Example

use chesterfield::Client;

let client = Client::new("http://localhost:5984").unwrap();

pub fn database(&self, name: impl AsRef<str>) -> Result<Database, UrlError>[src]

Create an interface to a CouchDB database.

Example

use chesterfield::Client;

let client = Client::new("http://localhost:5984").unwrap();

let database = client.database("some_collection").unwrap();

Auto Trait Implementations

impl Send for Client

impl Sync for Client

Blanket Implementations

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

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

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