kicad_monkey_core/
document_metadata.rs1use std::collections::BTreeMap;
4use std::ops::Range;
5
6#[derive(Clone, Debug, PartialEq)]
11pub struct KiCadPaper {
12 pub size: String,
13 pub width: Option<f64>,
14 pub height: Option<f64>,
15 pub portrait: bool,
16 pub source_range: Option<Range<usize>>,
17}
18
19#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize)]
21#[serde(deny_unknown_fields)]
22pub struct KiCadTitleBlock {
23 pub title: String,
24 pub date: String,
25 pub revision: String,
26 pub company: String,
27 pub comments: BTreeMap<i64, String>,
28 pub source_range: Range<usize>,
29}