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

/// Preview : A collection of rich text that will be displayed as a preview to another app.  This is read-only except for a small group of whitelisted apps.

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Preview {
    /// Some fallback text to display if unable to display the full preview.
    #[serde(rename = "fallback", skip_serializing_if = "Option::is_none")]
    pub fallback: Option<String>,
    /// Text to display in the footer.
    #[serde(rename = "footer", skip_serializing_if = "Option::is_none")]
    pub footer: Option<String>,
    /// Text to display in the header.
    #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
    pub header: Option<String>,
    /// Where the header will link to.
    #[serde(rename = "header_link", skip_serializing_if = "Option::is_none")]
    pub header_link: Option<String>,
    /// HTML formatted text for the body of the preview.
    #[serde(rename = "html_text", skip_serializing_if = "Option::is_none")]
    pub html_text: Option<String>,
    /// Text for the body of the preview.
    #[serde(rename = "text", skip_serializing_if = "Option::is_none")]
    pub text: Option<String>,
    /// Text to display as the title.
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// Where to title will link to.
    #[serde(rename = "title_link", skip_serializing_if = "Option::is_none")]
    pub title_link: Option<String>,
}

impl Preview {
    /// A collection of rich text that will be displayed as a preview to another app.  This is read-only except for a small group of whitelisted apps.
    pub fn new() -> Preview {
        Preview {
            fallback: None,
            footer: None,
            header: None,
            header_link: None,
            html_text: None,
            text: None,
            title: None,
            title_link: None,
        }
    }
}