Enum hacker_news::model::firebase::Item[][src]

pub enum Item {
    Job(Job),
    Story(Story),
    Comment(Comment),
    Poll(Poll),
    PollOption(PollOption),
}

Variants

Job

Tuple Fields of Job

0: Job
Story

Tuple Fields of Story

0: Story
Comment

Tuple Fields of Comment

0: Comment
Poll

Tuple Fields of Poll

0: Poll
PollOption

Tuple Fields of PollOption

0: PollOption

Implementations

pub fn is_story(&self) -> bool

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.