Struct hn::Item
[−]
[src]
pub struct Item { /* fields omitted */ }
Stores the metadata about a single news item
Methods
impl Item
[src]
pub fn title(&self) -> String
[src]
Return the title of the news item
pub fn url(&self) -> String
[src]
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more