[][src]Trait openstack::session::RequestBuilderExt

pub trait RequestBuilderExt {
    fn send_checked(self) -> Result<Response>;

    fn commit(self) -> Result<()>
    where
        Self: Sized
, { ... }
fn receive_json<T: DeserializeOwned>(self) -> Result<T>
    where
        Self: Sized
, { ... } }

Extension trait for HTTP calls with error handling.

Required methods

fn send_checked(self) -> Result<Response>

Send a request and validate the status code.

Loading content...

Provided methods

fn commit(self) -> Result<()> where
    Self: Sized

Send a request and discard the results.

fn receive_json<T: DeserializeOwned>(self) -> Result<T> where
    Self: Sized

Send a request and receive a JSON back.

Loading content...

Implementations on Foreign Types

impl RequestBuilderExt for RequestBuilder[src]

fn commit(self) -> Result<()> where
    Self: Sized
[src]

fn receive_json<T: DeserializeOwned>(self) -> Result<T> where
    Self: Sized
[src]

Loading content...

Implementors

Loading content...