Module response

Module response 

Source
Expand description

Response type and related utility types.

§Example

use modio::types::games::Game;
use modio::types::id::Id;
use modio::Client;

let client = Client::builder(std::env::var("MODIO_API_KEY")?).build()?;

let response = client.get_game(Id::new(51)).await?;
println!("http status: {}", response.status());

let game: Game = response.data().await?;
println!("name: {}", game.name);

Structs§

BodyError
Failure when processing a response body.
BytesFuture
A Future that will resolve to the bytes of a response body.
DataFuture
A Future that will resolve to a deserialized model.
NoContent
Marker that the response has no content.
Response
A Response from a submitted request.
ResponseFuture
A Future that will resolve to a Response.
TextFuture
A Future that will resolve to the text of a response body.