asana/models/task_set_parent_request.rs
1/*
2 * Asana
3 *
4 * 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).
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct TaskSetParentRequest {
13 /// The new parent of the task, or `null` for no parent.
14 #[serde(rename = "parent")]
15 pub parent: String,
16 /// A subtask of the parent to insert the task after, or `null` to insert at the beginning of the list.
17 #[serde(rename = "insert_after", skip_serializing_if = "Option::is_none")]
18 pub insert_after: Option<String>,
19 /// A subtask of the parent to insert the task before, or `null` to insert at the end of the list.
20 #[serde(rename = "insert_before", skip_serializing_if = "Option::is_none")]
21 pub insert_before: Option<String>,
22}
23
24impl TaskSetParentRequest {
25 pub fn new(parent: String) -> TaskSetParentRequest {
26 TaskSetParentRequest { parent, insert_after: None, insert_before: None }
27 }
28}