#![allow(unused_imports)] use asana::AsanaClient; use asana::model::*; #[tokio::main] async fn main() { let client = AsanaClient::from_env(); let data = StoryBase { asana_resource: AsanaResource { gid: "your gid".to_owned(), resource_type: "your resource type".to_owned(), }, created_at: Some(chrono::Utc::now()), html_text: Some("your html text".to_owned()), is_pinned: Some(true), resource_subtype: Some("your resource subtype".to_owned()), sticker_name: Some("your sticker name".to_owned()), text: Some("your text".to_owned()), }; let task_gid = "your task gid"; let response = client .create_story_for_task(data, task_gid) .opt_fields(&["your opt fields"]) .opt_pretty(true) .await .unwrap(); println!("{:#?}", response); }