Crates.io | asana-sdk |
lib.rs | asana-sdk |
version | 0.1.3 |
source | src |
created_at | 2020-10-03 18:43:35.504231 |
updated_at | 2020-10-04 11:14:49.297437 |
description | A Rust SDK for the Asana Rest API |
homepage | |
repository | https://github.com/okdewit/asana-sdk/ |
max_upload_size | |
id | 295841 |
size | 9,956 |
A Rust Asana SDK, for the Asana Rest API
This crate uses a model!
macro to define flexible Model Structs with a very lean syntax.
These generated structs are used to deserialize entities, select include fields and embed relationships from the Asana API.
See https://docs.rs/asana-sdk for complete documentation.
model!(User "users" {
email: String,
name: String,
});
// Simple calls to get one or multiple users
let mut user: User = asana.get::<User>("me").await;
let mut users: Vec<User> = asana.list::<User>().await;
model!(TaskWithProjects "tasks" {
name: String,
projects: Vec<Project>
} Project);
let mut tasks_with_projects = asana
.from::<Section>("12345678")
.list::<TaskWithProjects>().await;