swgoh-gg 1.0.0

API Bindings for swgoh.gg
Documentation
//! Types related to Gear

use {
    indexmap::IndexMap,
    serde::{Deserialize, Serialize},
};

#[derive(Debug, Deserialize, Serialize)]
pub struct Gear {
    pub base_id: String,
    pub recipes: Vec<Recipe>,
    pub tier: u64,
    pub required_level: u64,
    pub stats: IndexMap<String, f32>,
    pub mark: String,
    pub cost: u64,
    pub image: String,
    pub url: String,
    pub ingredients: Vec<Ingredient>,
    pub name: String,
}

#[derive(Debug, Deserialize, Serialize)]
pub struct Recipe {
    pub base_id: String,
    pub result_id: String,
    pub cost: u64,
    pub ingredients: Vec<Ingredient>,
}

#[derive(Debug, Deserialize, Serialize)]
pub struct Ingredient {
    pub amount: u64,
    pub gear: String,
}