Deboa Macros
deboa-macros is a collection of macros for deboa. It used to be the home of bora macro, which has been moved to its own crate but it will continue to exist in this crate for backwards compatibility.
Install
cargo add deboa-macros
Features
- json
- xml
- msgpack
Usage
bora
use DeboaError;
use bora;
use Vamo;
;
let client = new;
let mut post_service = new;
let post = post_service.get_by_id.await?;
println!;
println!;
Ok
other macros
use DeboaError;
use ;
use JsonBody;
use ;
let mut client = new;
// fetch macro
let response: = fetch!;
// get macro
let response: = get!;
// post macro
let response = post!;
// delete macro
let response = delete!;
Notes
It is not possible to use the same name for different operations. Please keep struct names unique and in separate modules if possible.
License
MIT
Author
Rogerio Pereira Araujo rogerio.araujo@gmail.com