/*
 * 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 SearchInboxConversations200ResponseDataInner {
    #[serde(rename = "conversation", skip_serializing_if = "Option::is_none")]
    pub conversation: Option<Box<models::SearchInboxConversations200ResponseDataInnerConversation>>,
    /// Total number of matching messages in this conversation
    #[serde(rename = "matchCount", skip_serializing_if = "Option::is_none")]
    pub match_count: Option<i32>,
    /// Up to 3 most-recent matching messages
    #[serde(rename = "matches", skip_serializing_if = "Option::is_none")]
    pub matches: Option<Vec<models::SearchInboxConversations200ResponseDataInnerMatchesInner>>,
}

impl SearchInboxConversations200ResponseDataInner {
    pub fn new() -> SearchInboxConversations200ResponseDataInner {
        SearchInboxConversations200ResponseDataInner {
            conversation: None,
            match_count: None,
            matches: None,
        }
    }
}
