Crate openmensa_rs[−][src]
Expand description
This crate provides a way to interact with the openmensa api
it serializes the request out of structures CanteenRequest
, DayRequest
and MealRequest
.
A simple example would be requesting a list of all available canteens in the api.
use openmensa_rs::request::CanteenRequest; let list = CanteenRequest::new().build().await.unwrap();
For a closer look on what you can specify in these requests go over to the documentation of these structs to see all available options and a more in-depth example.
Modules
request | Request Builders |
Structs
Canteen | Representation of a canteen. |
CoordinatePair | Representation for geographic location given to each canteen. |
Day | Reprensentation of a day. |
Meal | Representation of a single meal. |
Price | Representation of possible prices of every category. |
Enums
RequestError | Possible Errors are summed up as |
Functions
req_canteens | Short-hand to get all canteens. |
req_meals | Short-hand to get all meals offered on the specified day from one canteen. |
req_opening_days | Short-hand to get the opening days starting from today from the given canteen. |