asana-sdk

Crates.ioasana-sdk
lib.rsasana-sdk
version0.1.3
sourcesrc
created_at2020-10-03 18:43:35.504231
updated_at2020-10-04 11:14:49.297437
descriptionA Rust SDK for the Asana Rest API
homepage
repositoryhttps://github.com/okdewit/asana-sdk/
max_upload_size
id295841
size9,956
Orian de Wit (okdewit)

documentation

README

asana-sdk

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;
Commit count: 13

cargo fmt