| Crates.io | vamo-macros |
| lib.rs | vamo-macros |
| version | 0.0.5 |
| created_at | 2025-09-30 16:12:05.675012+00 |
| updated_at | 2025-12-09 18:44:28.301137+00 |
| description | macros for vamo to automate resource trait generation |
| homepage | |
| repository | https://github.com/ararog/deboa |
| max_upload_size | |
| id | 1861336 |
| size | 118,813 |
Vamo macros is a collection of macros to make possible use structs as resources to be sent over vamo as client.
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?;
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
MIT