Struct digitalocean::DigitalOcean
[−]
pub struct DigitalOcean { /* fields omitted */ }
A DigitalOcean Client that holds an API key.
Methods
impl DigitalOcean
[src]
fn new<T: Into<String>>(token: T) -> Result<Self, Error>
Create a DigitalOcean client with the given API key.
fn execute<A, V>(&self, request: Request<A, V>) -> Result<V, Error> where
A: Method,
Request<A, V>: Executable<V>,
V: HasResponse,
A: Method,
Request<A, V>: Executable<V>,
V: HasResponse,
Trait Implementations
impl Clone for DigitalOcean
[src]
fn clone(&self) -> DigitalOcean
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more