Struct hacker_news::model::firebase::Poll [−][src]
pub struct Poll {
pub id: Id,
pub deleted: Option<bool>,
pub by: Option<String>,
pub time: u64,
pub dead: Option<bool>,
pub kids: Option<Vec<Id>>,
pub parts: Option<Vec<Id>>,
pub descendants: Option<u32>,
pub score: Option<Score>,
pub title: Option<String>,
pub text: Option<String>,
}
Fields
id: Id
The item’s unique id.
deleted: Option<bool>
true if the item is deleted.
by: Option<String>
The type of item. One of “job”, “story”, “comment”, “poll”, or “pollopt”.
time: u64
Creation date of the item, in Unix Time.
dead: Option<bool>
true if the item is dead.
kids: Option<Vec<Id>>
The ids of the item’s comments, in ranked display order.
parts: Option<Vec<Id>>
A list of related pollopts, in display order.
descendants: Option<u32>
In the case of stories or polls, the total comment count.
score: Option<Score>
The story’s score, or the votes for a pollopt.
title: Option<String>
The title of the story, poll or job.
text: Option<String>
The comment, story or poll text. HTML.
Trait Implementations
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