factorio-prototypes-json 0.1.0

Rust types that parse Factorio's Prototype JSON Format.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! An illustrative image shown next to a member.

use serde::{Deserialize, Serialize};

/// An illustrative image shown next to a member.
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
pub struct Image {
    /// The name of the image file to display.
    ///
    /// These files are placed into the `/static/images/` directory.
    pub filename: String,

    /// The explanatory text to show attached to the image.
    pub caption: Option<String>,
}