Expand description
An async-friendly interface to themealdb.com
’s API
To make use of this crate, you will need an API key.
§Getting started.
To get started, create a new instance of the V1
API wrapper object.
From there, all of the publicly available API functions are exposed.
use mealdb::prelude::*;
use mealdb::Result;
async fn doc_demo_main() -> Result<()>{
let api = mealdb::V1::new("https://themealdb.com", "<your API token here>");
let meal = api.get_random_meal().await?;
}
Modules§
- This crate’s public representation of API data members. Many fields have been renamed to match Rust’s naming conventions. Many fields are also nullable, as they are nullable in the API.