vamo-macros 0.0.5

macros for vamo to automate resource trait generation
Documentation

Vamo Macros

Crates.io downloads crates.io Build Status Crates.io MSRV Documentation MIT licensed Codecov

Vamo macros is a collection of macros to make possible use structs as resources to be sent over vamo as client.

Usage

use vamo_macros::Resource;
use vamo::{Vamo, ResourceMethod};

#[derive(Resource)]
#[name("posts")]
#[body_type(JsonBody)]
pub struct User {
    #[rid]
    id: i32,
    name: String,
}

let mut vamo = Vamo::new("https://api.example.com")?;
let response = vamo.create(user).await?;

Features

  • derive macro for resource trait implementation

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

MIT

Authors