/*
 * 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 ListInboxMentions200ResponseDataInner {
    /// Mention document ID
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
    pub platform: Option<Platform>,
    #[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
    pub account_id: Option<String>,
    #[serde(rename = "accountUsername", skip_serializing_if = "Option::is_none")]
    pub account_username: Option<String>,
    /// Text of the post that mentioned you
    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    /// URL to the source post on LinkedIn
    #[serde(rename = "permalink", skip_serializing_if = "Option::is_none")]
    pub permalink: Option<String>,
    /// LinkedIn URN of the person who mentioned you
    #[serde(rename = "authorUrn", skip_serializing_if = "Option::is_none")]
    pub author_urn: Option<String>,
    /// URN of the organization that was mentioned
    #[serde(
        rename = "organizationalEntity",
        skip_serializing_if = "Option::is_none"
    )]
    pub organizational_entity: Option<String>,
    #[serde(rename = "publishedAt", skip_serializing_if = "Option::is_none")]
    pub published_at: Option<String>,
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
}

impl ListInboxMentions200ResponseDataInner {
    pub fn new() -> ListInboxMentions200ResponseDataInner {
        ListInboxMentions200ResponseDataInner {
            id: None,
            platform: None,
            account_id: None,
            account_username: None,
            content: None,
            permalink: None,
            author_urn: None,
            organizational_entity: None,
            published_at: None,
            created_at: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Platform {
    #[serde(rename = "linkedin")]
    Linkedin,
}

impl Default for Platform {
    fn default() -> Platform {
        Self::Linkedin
    }
}
