pub trait DoRequest<T>: BaseRequest where T: Deserialize + NamedResponse {
fn request(&self) -> Result<Request<Fresh>> { ... }
fn retrieve_json(&self) -> Result<String> { ... }
fn retrieve_raw_response(&self) -> Result<Response> { ... }
fn retrieve_header(&self) -> Result<HeaderOnly, String> { ... }
fn retrieve_obj(&self, obj: String) -> Result<T, String> { ... }
fn retrieve(&self) -> Result<T, String> { ... }
}
Provided Methods
Implementors
impl<'t> DoRequest<Account> for RequestBuilder<'t, Account>
impl<'t> DoRequest<Action> for RequestBuilder<'t, Action>
impl<'t> DoRequest<DnsRecord> for RequestBuilder<'t, DnsRecord>
impl<'t> DoRequest<Domain> for RequestBuilder<'t, Domain>
impl<'t> DoRequest<Droplet> for RequestBuilder<'t, Droplet>
impl<'t> DoRequest<Image> for RequestBuilder<'t, Image>
impl<'t> DoRequest<SshKey> for RequestBuilder<'t, SshKey>
impl<'t, I> DoRequest<Vec<I>> for RequestBuilder<'t, Vec<I>> where I: Deserialize + NamedResponse + NotArray
impl<'t> DoRequest<HeaderOnly> for RequestBuilder<'t, HeaderOnly>
impl<'t> DoRequest<ResponseStringArray> for RequestBuilder<'t, ResponseStringArray>
impl<'t> DoRequest<Neighbors> for RequestBuilder<'t, Neighbors>
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)