/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetGmbAttributeMetadata200ResponseAttributeMetadataInner {
    /// Resource name of the attribute (e.g. \"attributes/has_delivery\").
    #[serde(rename = "parent", skip_serializing_if = "Option::is_none")]
    pub parent: Option<String>,
    /// Value type (e.g. BOOL, ENUM, URL, REPEATED_ENUM).
    #[serde(rename = "valueType", skip_serializing_if = "Option::is_none")]
    pub value_type: Option<String>,
    /// Localized human-readable attribute name.
    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
    /// Display name of the attribute group.
    #[serde(rename = "groupDisplayName", skip_serializing_if = "Option::is_none")]
    pub group_display_name: Option<String>,
    /// True if multiple values can be set simultaneously.
    #[serde(rename = "repeatable", skip_serializing_if = "Option::is_none")]
    pub repeatable: Option<bool>,
    /// True if this attribute should no longer be used.
    #[serde(rename = "deprecated", skip_serializing_if = "Option::is_none")]
    pub deprecated: Option<bool>,
    /// Possible enum values (for ENUM / REPEATED_ENUM types).
    #[serde(rename = "valueMetadata", skip_serializing_if = "Option::is_none")]
    pub value_metadata: Option<
        Vec<models::GetGmbAttributeMetadata200ResponseAttributeMetadataInnerValueMetadataInner>,
    >,
}

impl GetGmbAttributeMetadata200ResponseAttributeMetadataInner {
    pub fn new() -> GetGmbAttributeMetadata200ResponseAttributeMetadataInner {
        GetGmbAttributeMetadata200ResponseAttributeMetadataInner {
            parent: None,
            value_type: None,
            display_name: None,
            group_display_name: None,
            repeatable: None,
            deprecated: None,
            value_metadata: None,
        }
    }
}
