pub struct NewsArticle {
pub source: NewsSourceInfo,
pub author: Option<String>,
pub title: String,
pub description: Option<String>,
pub url: String,
pub url_to_image: Option<String>,
pub published_at: String,
pub content: Option<String>,
}Fields§
§source: NewsSourceInfo§title: String§description: Option<String>§url: String§url_to_image: Option<String>§published_at: String§content: Option<String>Trait Implementations§
Source§impl Clone for NewsArticle
impl Clone for NewsArticle
Source§fn clone(&self) -> NewsArticle
fn clone(&self) -> NewsArticle
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 NewsArticle
impl Debug for NewsArticle
Source§impl<'de> Deserialize<'de> for NewsArticle
impl<'de> Deserialize<'de> for NewsArticle
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
Auto Trait Implementations§
impl Freeze for NewsArticle
impl RefUnwindSafe for NewsArticle
impl Send for NewsArticle
impl Sync for NewsArticle
impl Unpin for NewsArticle
impl UnwindSafe for NewsArticle
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