/*
* 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};
/// SentimentAnalysisResult : Analysis of the sentiment of the transcript, configured using `sentiment_analysis_config`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SentimentAnalysisResult {
#[serde(rename = "sentiment_analysis", skip_serializing_if = "Option::is_none")]
pub sentiment_analysis: Option<Box<models::SentimentAnalysisResultSentimentAnalysis>>,
}
impl SentimentAnalysisResult {
/// Analysis of the sentiment of the transcript, configured using `sentiment_analysis_config`.
pub fn new() -> SentimentAnalysisResult {
SentimentAnalysisResult {
sentiment_analysis: None,
}
}
}