use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "dataframe", derive(crate::ToDataFrame))]
#[non_exhaustive]
pub struct News {
pub title: String,
pub link: String,
pub source: String,
pub img: String,
pub time: String,
}
impl News {
pub(crate) fn new(
title: String,
link: String,
source: String,
img: String,
time: String,
) -> Self {
Self {
title,
link,
source,
img,
time,
}
}
}