pub struct EnhancedNewsArticle {
pub id: u64,
pub headline: String,
pub author: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
pub summary: Option<String>,
pub content: Option<String>,
pub url: Option<String>,
pub images: Vec<NewsImage>,
pub symbols: Vec<String>,
pub source: Option<String>,
}Expand description
Enhanced news article with images and additional fields.
Fields§
§id: u64Article ID.
headline: StringHeadline.
Author.
created_at: DateTime<Utc>Created at timestamp.
updated_at: Option<DateTime<Utc>>Updated at timestamp.
summary: Option<String>Summary.
content: Option<String>Full content.
url: Option<String>Article URL.
images: Vec<NewsImage>Images.
symbols: Vec<String>Related symbols.
source: Option<String>Source.
Trait Implementations§
Source§impl Clone for EnhancedNewsArticle
impl Clone for EnhancedNewsArticle
Source§fn clone(&self) -> EnhancedNewsArticle
fn clone(&self) -> EnhancedNewsArticle
Returns a duplicate of the value. Read more
1.0.0 · 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 EnhancedNewsArticle
impl Debug for EnhancedNewsArticle
Source§impl<'de> Deserialize<'de> for EnhancedNewsArticle
impl<'de> Deserialize<'de> for EnhancedNewsArticle
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnhancedNewsArticle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnhancedNewsArticle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for EnhancedNewsArticle
impl Serialize for EnhancedNewsArticle
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for EnhancedNewsArticle
impl RefUnwindSafe for EnhancedNewsArticle
impl Send for EnhancedNewsArticle
impl Sync for EnhancedNewsArticle
impl Unpin for EnhancedNewsArticle
impl UnwindSafe for EnhancedNewsArticle
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