Struct rusty_drone::Client

source ·
pub struct Client { /* private fields */ }

Implementations

Creates a new client for making requests

Arguments
  • auth_token - The authorization token provided in your account
  • base_url - The url with no path
Examples
extern crate drone_api;
use rusty_drone::Client;

let drone_client = Client::new(
    "randomsupersecrettoken".to_owned(),
    "drone.example.org".to_owned()
);

note that there is no trasport in the url

Retrieves the user information corresponfing to the provided authorization token.

Retrieves the repos registered to the corresponding user.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.