Crate mealdb[][src]

Expand description

An async-friendly interface to’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("", "<your API token here>");

    let meal = api.get_random_meal().await?;


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.



Type Definitions