Struct digitalocean::request::Request [] [src]

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
[src]

[src]

[src]

The JSON body of the request.

impl<A, R> Request<A, R> where
    A: Method
[src]

[src]

[src]

The JSON body of the request.

[src]

impl<A, R> Request<A, R> where
    A: Method
[src]

[src]

[src]

The JSON body of the request.

impl<A, V> Request<A, V> where
    A: Method
[src]

[src]

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

impl<V> Request<List, V>
[src]

[src]

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
[src]

[src]

Formats the value using the given formatter.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

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
[src]

[src]

Execute the corresponding call.

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

[src]

Execute the corresponding call.

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

[src]

Execute the corresponding call.

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

[src]

Execute the corresponding call.

impl Executable<()> for Request<Delete, ()>
[src]

[src]

Execute the corresponding call.