Struct hn::Item
[−]
[src]
pub struct Item { /* fields omitted */ }
Stores the metadata about a single news item
Methods
impl Item
[src]
fn title(&self) -> String
Return the title of the news item
fn url(&self) -> String
Return the URL of the news item.
This is the link to the external (non-HN) website if it has one, or a link to the HN comment section for stories without external links.
Trait Implementations
impl Debug for Item
[src]
impl Clone for Item
[src]
fn clone(&self) -> Item
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more