speechmatics 0.4.0

An async rust SDK for the Speechmatics API
Documentation
/*
 * Speechmatics ASR REST API
 *
 * The Speechmatics Automatic Speech Recognition REST API is used to submit ASR jobs and receive the results. 
 *
 * The version of the OpenAPI document: 2.0.0
 * Contact: support@speechmatics.com
 * Generated by: https://openapi-generator.tech
 */

use crate::batch::models;
use serde::{Deserialize, Serialize};

/// SentimentChannelSummary : Holds sentiment information for a specific channel.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SentimentChannelSummary {
    #[serde(rename = "channel", skip_serializing_if = "Option::is_none")]
    pub channel: Option<String>,
    #[serde(rename = "positive_count", skip_serializing_if = "Option::is_none")]
    pub positive_count: Option<i32>,
    #[serde(rename = "negative_count", skip_serializing_if = "Option::is_none")]
    pub negative_count: Option<i32>,
    #[serde(rename = "neutral_count", skip_serializing_if = "Option::is_none")]
    pub neutral_count: Option<i32>,
}

impl SentimentChannelSummary {
    /// Holds sentiment information for a specific channel.
    pub fn new() -> SentimentChannelSummary {
        SentimentChannelSummary {
            channel: None,
            positive_count: None,
            negative_count: None,
            neutral_count: None,
        }
    }
}