fmp_rs/models/
news.rs

1//! News article models.
2
3use serde::{Deserialize, Serialize};
4
5/// News article
6#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
7#[serde(rename_all = "camelCase")]
8pub struct NewsArticle {
9    pub symbol: Option<String>,
10    pub published_date: String,
11    pub title: String,
12    pub image: String,
13    pub site: String,
14    pub text: String,
15    pub url: String,
16}
17
18/// Press release
19#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
20#[serde(rename_all = "camelCase")]
21pub struct PressRelease {
22    pub symbol: String,
23    pub date: String,
24    pub title: String,
25    pub text: String,
26}