1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
//! # Request Builders //! This module contains the request builders, each have their own additional attributes which can be set to filter certain results from the response. //! //! # Example //! //! Each of the three request can carry additional information you may want to filter by e.g. //! ```rust //! # tokio::runtime::Runtime::new().unwrap().block_on(async { //! use openmensa_rs::request::CanteenRequest; //! use openmensa_rs::CoordinatePair; //! //! let near_canteens = CanteenRequest::new() //! .with_near_coordinates( //! CoordinatePair::new( //! 52.1396188273019, //! 11.6475999355316, //! ) //! ) //! .build() //! .await //! .unwrap(); //! # }) //! ``` //! //! specifiy a location for canteens (for more option have a look at the structs themselves). //! //! Or the range from which opening days may be returned: //! ```rust //! # tokio::runtime::Runtime::new().unwrap().block_on(async { //! use openmensa_rs::request::DayRequest; //! //! let near_canteens = DayRequest::new(1) //! .with_start_date(chrono::Utc::today()) //! .build() //! .await //! .unwrap(); //! # }) //! ``` mod canteen_request; mod day_request; mod meal_request; pub use canteen_request::*; pub use day_request::*; pub use meal_request::*;