[][src]Struct chesterfield::sync::GetRequest

pub struct GetRequest<'a> { /* fields omitted */ }

A request to retrieve a document from a CouchDB database.

The request is lazy- it doesn't do a thing until you call its 'send' method.

Methods

impl<'a> GetRequest<'a>[src]

pub fn send<T: DeserializeOwned>(self) -> Result<GetResponse<T>, Error>[src]

Send the request.

This will consume the 'get' request and return a GetResponse. The response is generic, so occasionally you might need type annotations.

Auto Trait Implementations

impl<'a> Send for GetRequest<'a>

impl<'a> Sync for GetRequest<'a>

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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