pub struct NewsResult {
pub title: String,
pub link: String,
pub snippet: Option<String>,
pub source: Option<String>,
pub date: Option<String>,
pub position: u32,
}
Expand description
News result for news searches
Fields§
§title: String
News article title
link: String
News article link
snippet: Option<String>
Article snippet (optional)
source: Option<String>
News source (optional)
date: Option<String>
Publication date (optional)
position: u32
Position in news results
Trait Implementations§
Source§impl Debug for NewsResult
impl Debug for NewsResult
Source§impl<'de> Deserialize<'de> for NewsResult
impl<'de> Deserialize<'de> for NewsResult
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 NewsResult
impl PartialEq for NewsResult
impl StructuralPartialEq for NewsResult
Auto Trait Implementations§
impl Freeze for NewsResult
impl RefUnwindSafe for NewsResult
impl Send for NewsResult
impl Sync for NewsResult
impl Unpin for NewsResult
impl UnwindSafe for NewsResult
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