asana/models/project_section_insert_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 ProjectSectionInsertRequest {
13 /// The project in which to reorder the given section.
14 #[serde(rename = "project")]
15 pub project: String,
16 /// The section to reorder.
17 #[serde(rename = "section")]
18 pub section: String,
19 /// Insert the given section immediately before the section specified by this parameter.
20 #[serde(
21 rename = "before_section",
22 skip_serializing_if = "Option::is_none"
23 )]
24 pub before_section: Option<String>,
25 /// Insert the given section immediately after the section specified by this parameter.
26 #[serde(rename = "after_section", skip_serializing_if = "Option::is_none")]
27 pub after_section: Option<String>,
28}
29
30impl ProjectSectionInsertRequest {
31 pub fn new(
32 project: String,
33 section: String,
34 ) -> ProjectSectionInsertRequest {
35 ProjectSectionInsertRequest {
36 project,
37 section,
38 before_section: None,
39 after_section: None,
40 }
41 }
42}