Devintest Rust Library
Welcome to my API
Table of Contents
Installation
Add this to your Cargo.toml:
[]
= "0.0.2"
Or install via cargo:
Reference
A full reference for this library is available here.
Usage
Instantiate and use the client with the following:
use *;
async
Errors
When the API returns a non-success status code (4xx or 5xx response), an error will be returned.
match client.imdb.create_movie?.await
Advanced
Retries
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2).
A request is deemed retryable when any of the following HTTP status codes is returned:
Use the max_retries method to configure this behavior.
let response = client.imdb.create_movie?.await;
Timeouts
The SDK defaults to a 30 second timeout. Use the timeout method to configure this behavior.
let response = client.imdb.create_movie?.await;
Additional Headers
You can add custom headers to requests using RequestOptions.
let response = client.imdb.create_movie?
.await;
Additional Query String Parameters
You can add custom query parameters to requests using RequestOptions.
let response = client.imdb.create_movie?
.await;