pub struct ArchNewsItem {
pub date: String,
pub title: String,
pub url: String,
}Expand description
What: A news item from the Arch Linux news RSS feed.
Inputs:
- Produced by
news::parse_arch_news_rss()/news::fetch_arch_news().
Output:
- Date, title, and URL of a news posting on archlinux.org.
Details:
dateis normalized toYYYY-MM-DDso items sort lexicographically.- Serializable via Serde for caller-side caching.
Fields§
§date: StringPublication date, normalized to YYYY-MM-DD.
title: StringNews headline.
url: StringLink to the full article on archlinux.org.
Trait Implementations§
Source§impl Clone for ArchNewsItem
impl Clone for ArchNewsItem
Source§fn clone(&self) -> ArchNewsItem
fn clone(&self) -> ArchNewsItem
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 ArchNewsItem
impl Debug for ArchNewsItem
Source§impl<'de> Deserialize<'de> for ArchNewsItem
impl<'de> Deserialize<'de> for ArchNewsItem
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
impl Eq for ArchNewsItem
Source§impl PartialEq for ArchNewsItem
impl PartialEq for ArchNewsItem
Source§impl Serialize for ArchNewsItem
impl Serialize for ArchNewsItem
impl StructuralPartialEq for ArchNewsItem
Auto Trait Implementations§
impl Freeze for ArchNewsItem
impl RefUnwindSafe for ArchNewsItem
impl Send for ArchNewsItem
impl Sync for ArchNewsItem
impl Unpin for ArchNewsItem
impl UnsafeUnpin for ArchNewsItem
impl UnwindSafe for ArchNewsItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.