pub struct RawArticle {
pub link: String,
pub title: String,
pub publish_date: DateTime<Utc>,
pub source: String,
pub language: String,
pub summary: Option<String>,
pub images: Vec<String>,
pub created_at: Option<DateTime<Utc>>,
pub revised_date: Option<DateTime<Utc>>,
pub is_update: Option<bool>,
pub categories: Vec<String>,
}Expand description
An unenriched article as delivered by the raw WebSocket stream (no sentiment, entities, or content — lower latency).
Fields§
§link: StringCanonical URL of the article.
title: StringHeadline.
publish_date: DateTime<Utc>Publication timestamp.
source: StringSource domain.
language: StringISO 639-1 language code.
summary: Option<String>Article summary.
images: Vec<String>Image URLs.
created_at: Option<DateTime<Utc>>When finlight first stored the article.
revised_date: Option<DateTime<Utc>>When the article was last revised by its publisher.
is_update: Option<bool>Whether this delivery is an update to a previously seen article.
categories: Vec<String>Categories assigned by finlight’s classification.
Trait Implementations§
Source§impl Clone for RawArticle
impl Clone for RawArticle
Source§fn clone(&self) -> RawArticle
fn clone(&self) -> RawArticle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawArticle
impl Debug for RawArticle
Source§impl<'de> Deserialize<'de> for RawArticle
impl<'de> Deserialize<'de> for RawArticle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RawArticle
impl PartialEq for RawArticle
Source§impl Serialize for RawArticle
impl Serialize for RawArticle
impl StructuralPartialEq for RawArticle
Auto Trait Implementations§
impl Freeze for RawArticle
impl RefUnwindSafe for RawArticle
impl Send for RawArticle
impl Sync for RawArticle
impl Unpin for RawArticle
impl UnsafeUnpin for RawArticle
impl UnwindSafe for RawArticle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more