use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SocialSentimentData {
#[serde(rename = "atTime")]
pub at_time: String,
pub mention: i64,
#[serde(rename = "positiveMention")]
pub positive_mention: i64,
#[serde(rename = "negativeMention")]
pub negative_mention: i64,
#[serde(rename = "positiveScore")]
pub positive_score: f64,
#[serde(rename = "negativeScore")]
pub negative_score: f64,
pub score: f64,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SocialSentiment {
pub symbol: String,
pub data: Vec<SocialSentimentData>,
pub reddit: Option<Vec<SocialSentimentData>>,
pub twitter: Option<Vec<SocialSentimentData>>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct FilingSentiment {
#[serde(rename = "accessNumber")]
pub access_number: String,
pub symbol: String,
pub cik: String,
pub sentiment: SentimentScores,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SentimentScores {
pub negative: f64,
pub positive: f64,
pub polarity: f64,
pub litigious: f64,
pub uncertainty: f64,
pub constraining: f64,
#[serde(rename = "modal-weak")]
pub modal_weak: f64,
#[serde(rename = "modal-strong")]
pub modal_strong: f64,
#[serde(rename = "modal-moderate")]
pub modal_moderate: f64,
}