pub struct PollOption {
pub id: Id,
pub deleted: Option<bool>,
pub by: Option<String>,
pub time: u64,
pub dead: Option<bool>,
pub kids: Option<Vec<Id>>,
pub parent: Option<Id>,
pub score: Option<Score>,
}
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.
parent: Option<Id>
The comment’s parent: either another comment or the relevant story.
score: Option<Score>
The story’s score, or the votes for a pollopt.
Trait Implementations§
Source§impl Debug for PollOption
impl Debug for PollOption
Source§impl<'de> Deserialize<'de> for PollOption
impl<'de> Deserialize<'de> for PollOption
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
Auto Trait Implementations§
impl Freeze for PollOption
impl RefUnwindSafe for PollOption
impl Send for PollOption
impl Sync for PollOption
impl Unpin for PollOption
impl UnwindSafe for PollOption
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