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 AddCustomFieldSettingRequest {
    /// The custom field to associate with this container.
    #[serde(rename = "custom_field")]
    pub custom_field: String,
    /// Whether this field should be considered important to this container (for instance, to display in the list view of items in the container).
    #[serde(rename = "is_important", skip_serializing_if = "Option::is_none")]
    pub is_important: Option<bool>,
    /// A gid of a Custom Field Setting on this container, before which the new Custom Field Setting will be added.  `insert_before` and `insert_after` parameters cannot both be specified.
    #[serde(rename = "insert_before", skip_serializing_if = "Option::is_none")]
    pub insert_before: Option<String>,
    /// A gid of a Custom Field Setting on this container, after which the new Custom Field Setting will be added.  `insert_before` and `insert_after` parameters cannot both be specified.
    #[serde(rename = "insert_after", skip_serializing_if = "Option::is_none")]
    pub insert_after: Option<String>,
}

impl AddCustomFieldSettingRequest {
    pub fn new(custom_field: String) -> AddCustomFieldSettingRequest {
        AddCustomFieldSettingRequest {
            custom_field,
            is_important: None,
            insert_before: None,
            insert_after: None,
        }
    }
}