rrw_macro

Crates.iorrw_macro
lib.rsrrw_macro
version0.1.1
sourcesrc
created_at2022-03-10 14:52:47.56763
updated_at2022-03-14 16:42:05.740636
descriptionA macro crate for rrw to easily build clients for REST-APIs.
homepagehttps://gitlab.com/Schmiddiii/rrw
repositoryhttps://gitlab.com/Schmiddiii/rrw
max_upload_size
id547650
size5,867
(Schmiddiii)

documentation

README

RRW-Macro (Rust REST Wrapper)

A macro crate for rrw to easily build clients for REST-APIs.

Example

#[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.

Commit count: 7

cargo fmt