mealdb-rs
This rust crate provides a reqwest
-based async interface
to themealdb.com
.
Usage
Currently, this crate only supports the json API v1 endpoints.
To use this crate, instantiate an instance of the API wrapper.
use *;
pub async
this V1
api wrapper exposes the supported methods of themealdb
's API.
For example, getting all the meals with a title containing chicken
:
// Searching for meals that contain a keyword
println!;
let meals = api
.search_meal_by_name
.await
.expect
.expect;
meals
.iter
.for_each;