harvest-api 5.0.0

Harvest client, generated from the OpenAPI spec.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![allow(unused_imports)]
use harvest_api::HarvestClient;
use harvest_api::model::*;
#[tokio::main]
async fn main() {
    let client = HarvestClient::from_env();
    let response = client
        .create_expense_category()
        .name("your name")
        .unit_name("your unit name")
        .unit_price(1.0)
        .is_active(true)
        .send()
        .await
        .unwrap();
    println!("{:#?}", response);
}