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};

/// SentimentAnalysisResultSentimentAnalysis : Holds the detailed sentiment analysis information.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SentimentAnalysisResultSentimentAnalysis {
    /// An array of objects that represent a segment of text and its associated sentiment.
    #[serde(rename = "segments", skip_serializing_if = "Option::is_none")]
    pub segments: Option<Vec<models::SentimentSegment>>,
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<Box<models::SentimentSummary>>,
}

impl SentimentAnalysisResultSentimentAnalysis {
    /// Holds the detailed sentiment analysis information.
    pub fn new() -> SentimentAnalysisResultSentimentAnalysis {
        SentimentAnalysisResultSentimentAnalysis {
            segments: None,
            summary: None,
        }
    }
}