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 PortfolioRequest {
    /// Globally unique identifier of the resource, as a string.
    #[serde(rename = "gid", skip_serializing_if = "Option::is_none")]
    pub gid: Option<String>,
    /// The base type of this resource.
    #[serde(rename = "resource_type", skip_serializing_if = "Option::is_none")]
    pub resource_type: Option<String>,
    /// The name of the portfolio.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Color of the portfolio.
    #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
    pub color: Option<Color>,
    /// An array of strings identifying users. These can either be the string \"me\", an email, or the gid of a user.
    #[serde(rename = "members", skip_serializing_if = "Option::is_none")]
    pub members: Option<Vec<String>>,
    /// Gid of an object.
    #[serde(rename = "workspace", skip_serializing_if = "Option::is_none")]
    pub workspace: Option<String>,
}

impl PortfolioRequest {
    pub fn new() -> PortfolioRequest {
        PortfolioRequest {
            gid: None,
            resource_type: None,
            name: None,
            color: None,
            members: None,
            workspace: None,
        }
    }
}

/// Color of the portfolio.
#[derive(
    Clone,
    Copy,
    Debug,
    Eq,
    PartialEq,
    Ord,
    PartialOrd,
    Hash,
    Serialize,
    Deserialize
)]
pub enum Color {
    #[serde(rename = "dark-pink")]
    DarkPink,
    #[serde(rename = "dark-green")]
    DarkGreen,
    #[serde(rename = "dark-blue")]
    DarkBlue,
    #[serde(rename = "dark-red")]
    DarkRed,
    #[serde(rename = "dark-teal")]
    DarkTeal,
    #[serde(rename = "dark-brown")]
    DarkBrown,
    #[serde(rename = "dark-orange")]
    DarkOrange,
    #[serde(rename = "dark-purple")]
    DarkPurple,
    #[serde(rename = "dark-warm-gray")]
    DarkWarmGray,
    #[serde(rename = "light-pink")]
    LightPink,
    #[serde(rename = "light-green")]
    LightGreen,
    #[serde(rename = "light-blue")]
    LightBlue,
    #[serde(rename = "light-red")]
    LightRed,
    #[serde(rename = "light-teal")]
    LightTeal,
    #[serde(rename = "light-brown")]
    LightBrown,
    #[serde(rename = "light-orange")]
    LightOrange,
    #[serde(rename = "light-purple")]
    LightPurple,
    #[serde(rename = "light-warm-gray")]
    LightWarmGray,
}