Deboa Macros
deboa-macros is a collection of macros for deboa. It is close equivalent to apisauce for axios, where one macro does it all, from request to response. It used to be the home of bora macro, which has been moved to vamo-macros crate.
Features
- json
- xml
- msgpack
Install
Either run from command line:
cargo add deboa-macros
Or add to your Cargo.toml:
= "0.0.8"
Usage
other macros
use DeboaError;
use ;
use JsonBody;
use ;
let client = default;
// fetch macro
let response: = fetch!;
// get macro, returning posts serialized as json
let response: = get!;
//get macro, returning text
let response: String = get!;
//get macro with headers
let response: String = get!;
// post macro
let response = post!;
// delete macro
let response = delete!;
License
MIT
Author
Rogerio Pereira Araujo rogerio.araujo@gmail.com