Struct ddg::Response [] [src]

pub struct Response {
    pub abstract_html: String,
    pub abstract_text: String,
    pub abstract_source: String,
    pub abstract_url: String,
    pub image: String,
    pub heading: String,
    pub answer: String,
    pub answer_type: String,
    pub definition: String,
    pub definition_source: String,
    pub definition_url: String,
    pub related_topics: Vec<RelatedTopic>,
    pub results: Vec<TopicResult>,
    pub response_type: Type,
    pub redirect: String,
}

The Response from DuckDuckGo.

Fields

The Topic summary (can contain HTML, e.g. italics).

The Topic summary with no HTML.

name of the source of the abstract.

A deep link to the expanded topic page from abstract_source.

A link to a image that goes with the abstract.

The name of the topic that goes with the abstract.

The Instant Answer.

type of Answer, e.g. calc, color, digest, info, ip, iploc, phone, pw, rand, regexp, unicode, upc, or zip, etc. (See tour page for examples)

The dictionary definition which may differ from the abstract.

The name of the source of the dictionary definition.

The url to the definition's source.

A vec of internal links to related topics associated with the abstract.

A vec of external links associated with the abstract.

The response's category, i.e. A (article), D (disambiguation), C (category), N (name), E (exclusive), or nothing.

Redirect URL from a !bang query.

Trait Implementations

impl Clone for Response
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Response
[src]

[src]

Formats the value using the given formatter.

impl Default for Response
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for Response
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Response
[src]