| Crates.io | rrw_macro |
| lib.rs | rrw_macro |
| version | 0.1.1 |
| created_at | 2022-03-10 14:52:47.56763+00 |
| updated_at | 2022-03-14 16:42:05.740636+00 |
| description | A macro crate for rrw to easily build clients for REST-APIs. |
| homepage | https://gitlab.com/Schmiddiii/rrw |
| repository | https://gitlab.com/Schmiddiii/rrw |
| max_upload_size | |
| id | 547650 |
| size | 5,867 |
A macro crate for rrw to easily build clients for REST-APIs.
#[rest]
impl Bahn {
async fn location(&self, location: &LocationQuery) -> Result<Vec<Location>, reqwest::Error> {
RestRequest::<&LocationQuery, ()>::get("/locations").query(location)
}
}
For more information, look at the rrw-crate.