Struct digitalocean::request::Request []

pub struct Request<A, R> where
    A: Method
{ /* fields omitted */ }

A consuming builder which can be used to build up API calls.

In general consumers of the crate should not need to use this type directly. Instead, build up requests from what is found in api::*.

Methods

impl<A, R> Request<A, R> where
    A: Method

The JSON body of the request.

impl<A, R> Request<A, R> where
    A: Method

The JSON body of the request.

impl<A, R> Request<A, R> where
    A: Method

The JSON body of the request.

impl<A, V> Request<A, V> where
    A: Method

Create a request pointing at the given url. V is the value ultimately returned when the call is executed.

impl<V> Request<List, V>

Impose a limit on the number of values which may be retrieved from a request.

Trait Implementations

impl<A: Debug, R: Debug> Debug for Request<A, R> where
    A: Method

Formats the value using the given formatter.

impl<A: Clone, R: Clone> Clone for Request<A, R> where
    A: Method

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<V> Executable<Vec<V>> for Request<List, Vec<V>> where
    Vec<V>: HasResponse,
    <Vec<V> as HasResponse>::Response: HasPagination

Execute the corresponding call.

impl<V> Executable<V> for Request<Create, V> where
    V: HasResponse

Execute the corresponding call.

impl<V> Executable<V> for Request<Update, V> where
    V: HasResponse

Execute the corresponding call.

impl<V> Executable<V> for Request<Get, V> where
    V: HasResponse

Execute the corresponding call.

impl Executable<()> for Request<Delete, ()>

Execute the corresponding call.