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
abstract_html: String
The Topic summary (can contain HTML, e.g. italics).
abstract_text: String
The Topic summary with no HTML.
abstract_source: String
name of the source of the abstract.
abstract_url: String
A deep link to the expanded topic page from abstract_source.
image: String
A link to a image that goes with the abstract.
heading: String
The name of the topic that goes with the abstract.
answer: String
The Instant Answer.
answer_type: String
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)
definition: String
The dictionary definition which may differ from the abstract.
definition_source: String
The name of the source of the dictionary definition.
definition_url: String
The url to the definition's source.
A vec of internal links to related topics associated with the abstract.
results: Vec<TopicResult>
A vec of external links associated with the abstract.
response_type: Type
The response's category, i.e. A (article), D (disambiguation), C (category), N (name), E (exclusive), or nothing.
redirect: String
Redirect URL from a !bang query.
Trait Implementations
impl Clone for Response[src]
fn clone(&self) -> Response[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 Response[src]
impl Default for Response[src]
impl PartialEq for Response[src]
fn eq(&self, __arg_0: &Response) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Response) -> bool[src]
This method tests for !=.