/*
* 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 TaskSetParentRequest {
/// The new parent of the task, or `null` for no parent.
#[serde(rename = "parent")]
pub parent: String,
/// A subtask of the parent 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 subtask of the parent 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>,
}
impl TaskSetParentRequest {
pub fn new(parent: String) -> TaskSetParentRequest {
TaskSetParentRequest { parent, insert_after: None, insert_before: None }
}
}