/*
* 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 SectionTaskInsertRequest {
/// The task to add to this section.
#[serde(rename = "task")]
pub task: String,
/// An existing task within this section before which the added task should be inserted. Cannot be provided together with insert_after.
#[serde(rename = "insert_before", skip_serializing_if = "Option::is_none")]
pub insert_before: Option<String>,
/// An existing task within this section after which the added task should be inserted. Cannot be provided together with insert_before.
#[serde(rename = "insert_after", skip_serializing_if = "Option::is_none")]
pub insert_after: Option<String>,
}
impl SectionTaskInsertRequest {
pub fn new(task: String) -> SectionTaskInsertRequest {
SectionTaskInsertRequest {
task,
insert_before: None,
insert_after: None,
}
}
}