asana2 0.5.0

Fluent OpenAPI client for Asana
Documentation
use serde::{Serialize, Deserialize};
///A response object returned from the task count endpoint.
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct TaskCountResponse {
    ///The number of completed milestones in a project.
    pub num_completed_milestones: i64,
    ///The number of completed tasks in a project.
    pub num_completed_tasks: i64,
    ///The number of incomplete milestones in a project.
    pub num_incomplete_milestones: i64,
    ///The number of incomplete tasks in a project.
    pub num_incomplete_tasks: i64,
    ///The number of milestones in a project.
    pub num_milestones: i64,
    ///The number of tasks in a project.
    pub num_tasks: i64,
}
impl std::fmt::Display for TaskCountResponse {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}