Struct hacker_news::model::firebase::Story[][src]

pub struct Story {
    pub id: Id,
    pub deleted: Option<bool>,
    pub by: Option<String>,
    pub time: u64,
    pub dead: Option<bool>,
    pub kids: Option<Vec<Id>>,
    pub descendants: Option<u32>,
    pub score: Option<Score>,
    pub title: Option<String>,
    pub url: 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.

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.

url: Option<String>

The URL of the story.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.