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 SectionRequest {
    /// *Create-Only* The project to create the section in
    #[serde(rename = "project")]
    pub project: String,
    /// The text to be displayed as the section name. This cannot be an empty string.
    #[serde(rename = "name")]
    pub name: String,
    /// An existing section within this project before which the added section 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 section within this project after which the added section 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 SectionRequest {
    pub fn new(project: String, name: String) -> SectionRequest {
        SectionRequest {
            project,
            name,
            insert_before: None,
            insert_after: None,
        }
    }
}