Struct xkcd::model::XkcdResponse [] [src]

pub struct XkcdResponse {
    pub month: u8,
    pub num: u32,
    pub link: String,
    pub year: u32,
    pub news: String,
    pub safe_title: String,
    pub transcript: String,
    pub alt: String,
    pub img: Url,
    pub title: String,
    pub day: u8,
}
[]

XkcdResponse is the outer wrapper for all results from the XKCD API query.

Fields

[]

The month the comic was published in, represented as an integer from 1 to 12.

[]

The number/ID of the comic.

[]

The URL in the anchor tag of the hyperlink surrounding the image, if the image is a hyperlinked one.

[]

The year the comic was published in.

[]

News or updates regarding the comic.

[]

A plain ASCII representation of the title.

[]

A transcript of the text of the comic.

[]

Alt text for the comic.

[]

A link to the comic image.

[]

The title of the comic.

[]

The day of the month the comic was published on.

Trait Implementations

impl Clone for XkcdResponse
[src]

[src]
[]

Returns a copy of the value. Read more

1.0.0
[src]
[]

Performs copy-assignment from source. Read more

impl Debug for XkcdResponse
[src]

[src]
[]

Formats the value using the given formatter.

impl PartialEq for XkcdResponse
[src]

[src]
[]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]
[]

This method tests for !=.