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§
- Body
Error - Failure when processing a response body.
- Bytes
Future - A
Futurethat will resolve to the bytes of a response body. - Data
Future - A
Futurethat will resolve to a deserialized model. - NoContent
- Marker that the response has no content.
- Response
- A
Responsefrom a submitted request. - Response
Future - A
Futurethat will resolve to aResponse. - Text
Future - A
Futurethat will resolve to the text of a response body.