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
month: u8
The month the comic was published in, represented as an integer from 1 to 12.
num: u32
The number/ID of the comic.
link: String
The URL in the anchor tag of the hyperlink surrounding the image, if the image is a hyperlinked one.
year: u32
The year the comic was published in.
news: String
News or updates regarding the comic.
safe_title: String
A plain ASCII representation of the title.
transcript: String
A transcript of the text of the comic.
alt: String
Alt text for the comic.
img: Url
A link to the comic image.
title: String
The title of the comic.
day: u8
The day of the month the comic was published on.
Trait Implementations
impl Clone for XkcdResponse[src]
fn clone(&self) -> XkcdResponse[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for XkcdResponse[src]
impl PartialEq for XkcdResponse[src]
fn eq(&self, __arg_0: &XkcdResponse) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &XkcdResponse) -> bool[src]
This method tests for !=.