ddg 0.5.0

An ORM for DuckDuckGo.
Documentation
use self::Type::*;

/// The Different types of Instant Answers.
#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Eq)]
pub enum Type {
    /// An Article about the answer.
    #[serde(rename="A")]
    Article,
    /// A Disambiguation of the answer.
    #[serde(rename="D")]
    Disambiguation,
    /// Category
    #[serde(rename="C")]
    Category,
    /// Name
    #[serde(rename="N")]
    Name,
    /// Exclusive
    #[serde(rename="E")]
    Exclusive,
    /// Instant Answer has no type.
    #[serde(rename="")]
    Nothing,
}

impl Default for Type {
    fn default() -> Self {
        Nothing
    }
}