/*
 * 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 GetWhatsAppCallPermissions200ResponseActionsInner {
    #[serde(rename = "action_name", skip_serializing_if = "Option::is_none")]
    pub action_name: Option<ActionName>,
    #[serde(rename = "can_perform_action", skip_serializing_if = "Option::is_none")]
    pub can_perform_action: Option<bool>,
}

impl GetWhatsAppCallPermissions200ResponseActionsInner {
    pub fn new() -> GetWhatsAppCallPermissions200ResponseActionsInner {
        GetWhatsAppCallPermissions200ResponseActionsInner {
            action_name: None,
            can_perform_action: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ActionName {
    #[serde(rename = "send_call_permission_request")]
    SendCallPermissionRequest,
    #[serde(rename = "start_call")]
    StartCall,
}

impl Default for ActionName {
    fn default() -> ActionName {
        Self::SendCallPermissionRequest
    }
}
