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 WorkspaceResponse {
    /// 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 workspace.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The email domains that are associated with this workspace.
    #[serde(rename = "email_domains", skip_serializing_if = "Option::is_none")]
    pub email_domains: Option<Vec<String>>,
    /// Whether the workspace is an *organization*.
    #[serde(
        rename = "is_organization",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_organization: Option<bool>,
}

impl WorkspaceResponse {
    pub fn new() -> WorkspaceResponse {
        WorkspaceResponse {
            gid: None,
            resource_type: None,
            name: None,
            email_domains: None,
            is_organization: None,
        }
    }
}