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

/// SendInboxMessageRequestInteractiveActionOneOf4 : Location request action. `type` on the parent must be `location_request_message`. May be omitted entirely; it is defaulted.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SendInboxMessageRequestInteractiveActionOneOf4 {
    #[serde(rename = "name")]
    pub name: Name,
}

impl SendInboxMessageRequestInteractiveActionOneOf4 {
    /// Location request action. `type` on the parent must be `location_request_message`. May be omitted entirely; it is defaulted.
    pub fn new(name: Name) -> SendInboxMessageRequestInteractiveActionOneOf4 {
        SendInboxMessageRequestInteractiveActionOneOf4 { name }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Name {
    #[serde(rename = "send_location")]
    SendLocation,
}

impl Default for Name {
    fn default() -> Name {
        Self::SendLocation
    }
}
