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 TagResponse {
    /// 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>,
    /// Name of the tag. This is generally a short sentence fragment that fits on a line in the UI for maximum readability. However, it can be longer.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Color of the tag.
    #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
    pub color: Option<Color>,
    /// Array of users following this tag.
    #[serde(rename = "followers", skip_serializing_if = "Option::is_none")]
    pub followers: Option<Vec<crate::models::UserCompact>>,
    #[serde(rename = "workspace", skip_serializing_if = "Option::is_none")]
    pub workspace: Option<Box<crate::models::WorkspaceCompact>>,
    /// A url that points directly to the object within Asana.
    #[serde(rename = "permalink_url", skip_serializing_if = "Option::is_none")]
    pub permalink_url: Option<String>,
}

impl TagResponse {
    pub fn new() -> TagResponse {
        TagResponse {
            gid: None,
            resource_type: None,
            name: None,
            color: None,
            followers: None,
            workspace: None,
            permalink_url: None,
        }
    }
}

/// Color of the tag.
#[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,
}