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
 */

/// StoryBaseAllOf : A story represents an activity associated with an object in the Asana system.

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct StoryBaseAllOf {
    /// The time at which this resource was created.
    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// The subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning.
    #[serde(
        rename = "resource_subtype",
        skip_serializing_if = "Option::is_none"
    )]
    pub resource_subtype: Option<String>,
    /// The plain text of the comment to add. Cannot be used with html_text.
    #[serde(rename = "text", skip_serializing_if = "Option::is_none")]
    pub text: Option<String>,
    /// [Opt In](/docs/input-output-options). HTML formatted text for a comment. This will not include the name of the creator.
    #[serde(rename = "html_text", skip_serializing_if = "Option::is_none")]
    pub html_text: Option<String>,
    /// *Conditional*. Whether the story should be pinned on the resource.
    #[serde(rename = "is_pinned", skip_serializing_if = "Option::is_none")]
    pub is_pinned: Option<bool>,
    /// The name of the sticker in this story. `null` if there is no sticker.
    #[serde(rename = "sticker_name", skip_serializing_if = "Option::is_none")]
    pub sticker_name: Option<StickerName>,
}

impl StoryBaseAllOf {
    /// A story represents an activity associated with an object in the Asana system.
    pub fn new() -> StoryBaseAllOf {
        StoryBaseAllOf {
            created_at: None,
            resource_subtype: None,
            text: None,
            html_text: None,
            is_pinned: None,
            sticker_name: None,
        }
    }
}

/// The name of the sticker in this story. `null` if there is no sticker.
#[derive(
    Clone,
    Copy,
    Debug,
    Eq,
    PartialEq,
    Ord,
    PartialOrd,
    Hash,
    Serialize,
    Deserialize
)]
pub enum StickerName {
    #[serde(rename = "green_checkmark")]
    GreenCheckmark,
    #[serde(rename = "people_dancing")]
    PeopleDancing,
    #[serde(rename = "dancing_unicorn")]
    DancingUnicorn,
    #[serde(rename = "heart")]
    Heart,
    #[serde(rename = "party_popper")]
    PartyPopper,
    #[serde(rename = "people_waving_flags")]
    PeopleWavingFlags,
    #[serde(rename = "splashing_narwhal")]
    SplashingNarwhal,
    #[serde(rename = "trophy")]
    Trophy,
    #[serde(rename = "yeti_riding_unicorn")]
    YetiRidingUnicorn,
    #[serde(rename = "celebrating_people")]
    CelebratingPeople,
    #[serde(rename = "determined_climbers")]
    DeterminedClimbers,
    #[serde(rename = "phoenix_spreading_love")]
    PhoenixSpreadingLove,
}