/*
* Asana
*
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct TaskAddProjectRequest {
/// The project to add the task to.
#[serde(rename = "project")]
pub project: String,
/// A task in the project to insert the task after, or `null` to insert at the beginning of the list.
#[serde(rename = "insert_after", skip_serializing_if = "Option::is_none")]
pub insert_after: Option<String>,
/// A task in the project to insert the task before, or `null` to insert at the end of the list.
#[serde(rename = "insert_before", skip_serializing_if = "Option::is_none")]
pub insert_before: Option<String>,
/// A section in the project to insert the task into. The task will be inserted at the bottom of the section.
#[serde(rename = "section", skip_serializing_if = "Option::is_none")]
pub section: Option<String>,
}
impl TaskAddProjectRequest {
pub fn new(project: String) -> TaskAddProjectRequest {
TaskAddProjectRequest {
project,
insert_after: None,
insert_before: None,
section: None,
}
}
}