/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
*
* The version of the OpenAPI document: 1.16.0
* 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 GetInboxTopAccounts200ResponseAccountsInner {
#[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
pub account_id: Option<String>,
#[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
pub platform: Option<String>,
/// (disconnected) when the SocialAccount no longer exists
#[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
pub display_name: Option<String>,
#[serde(rename = "username", skip_serializing_if = "Option::is_none")]
pub username: Option<String>,
#[serde(rename = "received", skip_serializing_if = "Option::is_none")]
pub received: Option<i32>,
#[serde(rename = "sent", skip_serializing_if = "Option::is_none")]
pub sent: Option<i32>,
#[serde(rename = "total", skip_serializing_if = "Option::is_none")]
pub total: Option<i32>,
#[serde(rename = "conversations", skip_serializing_if = "Option::is_none")]
pub conversations: Option<i32>,
#[serde(
rename = "medianResponseSeconds",
skip_serializing_if = "Option::is_none"
)]
pub median_response_seconds: Option<i32>,
/// Distinguishes 'instant replies' from 'no replies at all' so a zero medianResponseSeconds with repliedCount=0 renders as an em dash instead of '0s'
#[serde(rename = "repliedCount", skip_serializing_if = "Option::is_none")]
pub replied_count: Option<i32>,
}
impl GetInboxTopAccounts200ResponseAccountsInner {
pub fn new() -> GetInboxTopAccounts200ResponseAccountsInner {
GetInboxTopAccounts200ResponseAccountsInner {
account_id: None,
platform: None,
display_name: None,
username: None,
received: None,
sent: None,
total: None,
conversations: None,
median_response_seconds: None,
replied_count: None,
}
}
}