asana 0.1.1

asana bindings for rust
Documentation
/*
 * 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 ProjectSectionInsertRequest {
    /// The project in which to reorder the given section.
    #[serde(rename = "project")]
    pub project: String,
    /// The section to reorder.
    #[serde(rename = "section")]
    pub section: String,
    /// Insert the given section immediately before the section specified by this parameter.
    #[serde(
        rename = "before_section",
        skip_serializing_if = "Option::is_none"
    )]
    pub before_section: Option<String>,
    /// Insert the given section immediately after the section specified by this parameter.
    #[serde(rename = "after_section", skip_serializing_if = "Option::is_none")]
    pub after_section: Option<String>,
}

impl ProjectSectionInsertRequest {
    pub fn new(
        project: String,
        section: String,
    ) -> ProjectSectionInsertRequest {
        ProjectSectionInsertRequest {
            project,
            section,
            before_section: None,
            after_section: None,
        }
    }
}