ed-journals 0.4.0

Provides models for representing and parsing elite dangerous journal files
Documentation
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub enum FactionHappiness {
    #[serde(rename = "$Faction_HappinessBand1;")]
    Elated,

    #[serde(rename = "$Faction_HappinessBand2;")]
    Happy,

    #[serde(rename = "$Faction_HappinessBand3;")]
    Content,

    #[serde(rename = "$Faction_HappinessBand4;")]
    Unhappy,

    #[serde(rename = "$Faction_HappinessBand5;")]
    Despondent,

    // TODO check what this one should actually be
    #[serde(rename = "")]
    Unspecified,

    #[cfg(not(feature = "strict"))]
    #[serde(untagged)]
    Unknown(String),
}