Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

kicad_monkey_contracts/generated/
board_plot_document.rs

1/// Error types.
2pub mod error {
3    /// Error from a `TryFrom` or `FromStr` implementation.
4    pub struct ConversionError(::std::borrow::Cow<'static, str>);
5    impl ::std::error::Error for ConversionError {}
6    impl ::std::fmt::Display for ConversionError {
7        fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> {
8            ::std::fmt::Display::fmt(&self.0, f)
9        }
10    }
11    impl ::std::fmt::Debug for ConversionError {
12        fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> {
13            ::std::fmt::Debug::fmt(&self.0, f)
14        }
15    }
16    impl From<&'static str> for ConversionError {
17        fn from(value: &'static str) -> Self {
18            Self(value.into())
19        }
20    }
21    impl From<String> for ConversionError {
22        fn from(value: String) -> Self {
23            Self(value.into())
24        }
25    }
26}
27///Solid three-point arc.
28///
29/// <details><summary>JSON schema</summary>
30///
31/// ```json
32///{
33///  "description": "Solid three-point arc.",
34///  "type": "object",
35///  "required": [
36///    "end_x",
37///    "end_y",
38///    "fill",
39///    "index",
40///    "kind",
41///    "mid_x",
42///    "mid_y",
43///    "start_x",
44///    "start_y",
45///    "width_nm"
46///  ],
47///  "properties": {
48///    "end_x": {
49///      "$ref": "#/$defs/JavaScriptSafeInteger"
50///    },
51///    "end_y": {
52///      "$ref": "#/$defs/JavaScriptSafeInteger"
53///    },
54///    "fill": {
55///      "$ref": "#/$defs/PlotterFill"
56///    },
57///    "fill_color": {
58///      "type": "string"
59///    },
60///    "index": {
61///      "type": "integer",
62///      "maximum": 4294967295.0,
63///      "minimum": 0.0
64///    },
65///    "kind": {
66///      "type": "string",
67///      "const": "ArcThreePoint"
68///    },
69///    "layer": {
70///      "type": "string"
71///    },
72///    "line_style": {
73///      "$ref": "#/$defs/PlotterLineStyle"
74///    },
75///    "mid_x": {
76///      "$ref": "#/$defs/JavaScriptSafeInteger"
77///    },
78///    "mid_y": {
79///      "$ref": "#/$defs/JavaScriptSafeInteger"
80///    },
81///    "start_x": {
82///      "$ref": "#/$defs/JavaScriptSafeInteger"
83///    },
84///    "start_y": {
85///      "$ref": "#/$defs/JavaScriptSafeInteger"
86///    },
87///    "stroke_color": {
88///      "type": "string"
89///    },
90///    "width_nm": {
91///      "$ref": "#/$defs/JavaScriptSafeInteger"
92///    }
93///  },
94///  "additionalProperties": false
95///}
96/// ```
97/// </details>
98#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
99#[serde(deny_unknown_fields)]
100pub struct ArcThreePointOperation {
101    pub end_x: crate::JavaScriptSafeInteger,
102    pub end_y: crate::JavaScriptSafeInteger,
103    pub fill: PlotterFill,
104    #[serde(
105        default,
106        deserialize_with = "crate::deserialize_present_nonnull",
107        skip_serializing_if = "::std::option::Option::is_none"
108    )]
109    pub fill_color: ::std::option::Option<::std::string::String>,
110    pub index: u32,
111    #[serde(deserialize_with = "crate::deserialize_arc_three_point_kind")]
112    pub kind: ::std::string::String,
113    #[serde(
114        default,
115        deserialize_with = "crate::deserialize_present_nonnull",
116        skip_serializing_if = "::std::option::Option::is_none"
117    )]
118    pub layer: ::std::option::Option<::std::string::String>,
119    #[serde(
120        default,
121        deserialize_with = "crate::deserialize_present_nonnull",
122        skip_serializing_if = "::std::option::Option::is_none"
123    )]
124    pub line_style: ::std::option::Option<PlotterLineStyle>,
125    pub mid_x: crate::JavaScriptSafeInteger,
126    pub mid_y: crate::JavaScriptSafeInteger,
127    pub start_x: crate::JavaScriptSafeInteger,
128    pub start_y: crate::JavaScriptSafeInteger,
129    #[serde(
130        default,
131        deserialize_with = "crate::deserialize_present_nonnull",
132        skip_serializing_if = "::std::option::Option::is_none"
133    )]
134    pub stroke_color: ::std::option::Option<::std::string::String>,
135    pub width_nm: crate::JavaScriptSafeInteger,
136}
137///Cubic Bézier shared by symbol and schematic producers.
138///
139/// <details><summary>JSON schema</summary>
140///
141/// ```json
142///{
143///  "description": "Cubic Bézier shared by symbol and schematic producers.",
144///  "type": "object",
145///  "required": [
146///    "ctrl1_x",
147///    "ctrl1_y",
148///    "ctrl2_x",
149///    "ctrl2_y",
150///    "end_x",
151///    "end_y",
152///    "index",
153///    "kind",
154///    "start_x",
155///    "start_y",
156///    "tolerance_nm",
157///    "width_nm"
158///  ],
159///  "properties": {
160///    "ctrl1_x": {
161///      "$ref": "#/$defs/JavaScriptSafeInteger"
162///    },
163///    "ctrl1_y": {
164///      "$ref": "#/$defs/JavaScriptSafeInteger"
165///    },
166///    "ctrl2_x": {
167///      "$ref": "#/$defs/JavaScriptSafeInteger"
168///    },
169///    "ctrl2_y": {
170///      "$ref": "#/$defs/JavaScriptSafeInteger"
171///    },
172///    "end_x": {
173///      "$ref": "#/$defs/JavaScriptSafeInteger"
174///    },
175///    "end_y": {
176///      "$ref": "#/$defs/JavaScriptSafeInteger"
177///    },
178///    "index": {
179///      "type": "integer",
180///      "maximum": 4294967295.0,
181///      "minimum": 0.0
182///    },
183///    "kind": {
184///      "type": "string",
185///      "const": "BezierCurve"
186///    },
187///    "layer": {
188///      "type": "string"
189///    },
190///    "line_style": {
191///      "$ref": "#/$defs/PlotterLineStyle"
192///    },
193///    "start_x": {
194///      "$ref": "#/$defs/JavaScriptSafeInteger"
195///    },
196///    "start_y": {
197///      "$ref": "#/$defs/JavaScriptSafeInteger"
198///    },
199///    "stroke_color": {
200///      "type": "string"
201///    },
202///    "tolerance_nm": {
203///      "$ref": "#/$defs/JavaScriptSafeInteger"
204///    },
205///    "width_nm": {
206///      "$ref": "#/$defs/JavaScriptSafeInteger"
207///    }
208///  },
209///  "additionalProperties": false
210///}
211/// ```
212/// </details>
213#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
214#[serde(deny_unknown_fields)]
215pub struct BezierCurveOperation {
216    pub ctrl1_x: crate::JavaScriptSafeInteger,
217    pub ctrl1_y: crate::JavaScriptSafeInteger,
218    pub ctrl2_x: crate::JavaScriptSafeInteger,
219    pub ctrl2_y: crate::JavaScriptSafeInteger,
220    pub end_x: crate::JavaScriptSafeInteger,
221    pub end_y: crate::JavaScriptSafeInteger,
222    pub index: u32,
223    #[serde(deserialize_with = "crate::deserialize_bezier_curve_kind")]
224    pub kind: ::std::string::String,
225    #[serde(
226        default,
227        deserialize_with = "crate::deserialize_present_nonnull",
228        skip_serializing_if = "::std::option::Option::is_none"
229    )]
230    pub layer: ::std::option::Option<::std::string::String>,
231    #[serde(
232        default,
233        deserialize_with = "crate::deserialize_present_nonnull",
234        skip_serializing_if = "::std::option::Option::is_none"
235    )]
236    pub line_style: ::std::option::Option<PlotterLineStyle>,
237    pub start_x: crate::JavaScriptSafeInteger,
238    pub start_y: crate::JavaScriptSafeInteger,
239    #[serde(
240        default,
241        deserialize_with = "crate::deserialize_present_nonnull",
242        skip_serializing_if = "::std::option::Option::is_none"
243    )]
244    pub stroke_color: ::std::option::Option<::std::string::String>,
245    pub tolerance_nm: crate::JavaScriptSafeInteger,
246    pub width_nm: crate::JavaScriptSafeInteger,
247}
248///Board dimension construction styles supported by KiCad's PCB plotter.
249///
250/// <details><summary>JSON schema</summary>
251///
252/// ```json
253///{
254///  "description": "Board dimension construction styles supported by KiCad's PCB plotter.",
255///  "type": "string",
256///  "enum": [
257///    "aligned",
258///    "orthogonal",
259///    "radial",
260///    "leader",
261///    "center"
262///  ]
263///}
264/// ```
265/// </details>
266#[derive(
267    ::serde::Deserialize,
268    ::serde::Serialize,
269    Clone,
270    Copy,
271    Debug,
272    Eq,
273    Hash,
274    Ord,
275    PartialEq,
276    PartialOrd,
277)]
278pub enum BoardDimensionType {
279    #[serde(rename = "aligned")]
280    Aligned,
281    #[serde(rename = "orthogonal")]
282    Orthogonal,
283    #[serde(rename = "radial")]
284    Radial,
285    #[serde(rename = "leader")]
286    Leader,
287    #[serde(rename = "center")]
288    Center,
289}
290impl ::std::fmt::Display for BoardDimensionType {
291    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
292        match *self {
293            Self::Aligned => f.write_str("aligned"),
294            Self::Orthogonal => f.write_str("orthogonal"),
295            Self::Radial => f.write_str("radial"),
296            Self::Leader => f.write_str("leader"),
297            Self::Center => f.write_str("center"),
298        }
299    }
300}
301impl ::std::str::FromStr for BoardDimensionType {
302    type Err = self::error::ConversionError;
303    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
304        match value {
305            "aligned" => Ok(Self::Aligned),
306            "orthogonal" => Ok(Self::Orthogonal),
307            "radial" => Ok(Self::Radial),
308            "leader" => Ok(Self::Leader),
309            "center" => Ok(Self::Center),
310            _ => Err("invalid value".into()),
311        }
312    }
313}
314impl ::std::convert::TryFrom<&str> for BoardDimensionType {
315    type Error = self::error::ConversionError;
316    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
317        value.parse()
318    }
319}
320impl ::std::convert::TryFrom<&::std::string::String> for BoardDimensionType {
321    type Error = self::error::ConversionError;
322    fn try_from(
323        value: &::std::string::String,
324    ) -> ::std::result::Result<Self, self::error::ConversionError> {
325        value.parse()
326    }
327}
328impl ::std::convert::TryFrom<::std::string::String> for BoardDimensionType {
329    type Error = self::error::ConversionError;
330    fn try_from(
331        value: ::std::string::String,
332    ) -> ::std::result::Result<Self, self::error::ConversionError> {
333        value.parse()
334    }
335}
336///`BoardFootprintArcThreePointOperation`
337///
338/// <details><summary>JSON schema</summary>
339///
340/// ```json
341///{
342///  "type": "object",
343///  "required": [
344///    "end_x",
345///    "end_y",
346///    "fill",
347///    "index",
348///    "kind",
349///    "mid_x",
350///    "mid_y",
351///    "start_x",
352///    "start_y",
353///    "width_nm"
354///  ],
355///  "properties": {
356///    "data_ref": {
357///      "$ref": "#/$defs/BoardFootprintChildRef"
358///    },
359///    "data_uuid": {
360///      "type": "string"
361///    },
362///    "end_x": {
363///      "$ref": "#/$defs/JavaScriptSafeInteger"
364///    },
365///    "end_y": {
366///      "$ref": "#/$defs/JavaScriptSafeInteger"
367///    },
368///    "extra_attrs": {
369///      "$ref": "#/$defs/BoardFootprintChildAttrs"
370///    },
371///    "fill": {
372///      "$ref": "#/$defs/PlotterFill"
373///    },
374///    "fill_color": {
375///      "type": "string"
376///    },
377///    "index": {
378///      "type": "integer",
379///      "maximum": 4294967295.0,
380///      "minimum": 0.0
381///    },
382///    "kind": {
383///      "type": "string",
384///      "const": "ArcThreePoint"
385///    },
386///    "label": {
387///      "type": "string"
388///    },
389///    "layer": {
390///      "type": "string"
391///    },
392///    "line_style": {
393///      "$ref": "#/$defs/PlotterLineStyle"
394///    },
395///    "mid_x": {
396///      "$ref": "#/$defs/JavaScriptSafeInteger"
397///    },
398///    "mid_y": {
399///      "$ref": "#/$defs/JavaScriptSafeInteger"
400///    },
401///    "object_id": {
402///      "type": "string"
403///    },
404///    "start_x": {
405///      "$ref": "#/$defs/JavaScriptSafeInteger"
406///    },
407///    "start_y": {
408///      "$ref": "#/$defs/JavaScriptSafeInteger"
409///    },
410///    "stroke_color": {
411///      "type": "string"
412///    },
413///    "width_nm": {
414///      "$ref": "#/$defs/JavaScriptSafeInteger"
415///    }
416///  },
417///  "additionalProperties": false
418///}
419/// ```
420/// </details>
421#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
422#[serde(deny_unknown_fields)]
423pub struct BoardFootprintArcThreePointOperation {
424    #[serde(
425        default,
426        deserialize_with = "crate::deserialize_present_nonnull",
427        skip_serializing_if = "::std::option::Option::is_none"
428    )]
429    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
430    #[serde(
431        default,
432        deserialize_with = "crate::deserialize_present_nonnull",
433        skip_serializing_if = "::std::option::Option::is_none"
434    )]
435    pub data_uuid: ::std::option::Option<::std::string::String>,
436    pub end_x: crate::JavaScriptSafeInteger,
437    pub end_y: crate::JavaScriptSafeInteger,
438    #[serde(
439        default,
440        deserialize_with = "crate::deserialize_present_nonnull",
441        skip_serializing_if = "::std::option::Option::is_none"
442    )]
443    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
444    pub fill: PlotterFill,
445    #[serde(
446        default,
447        deserialize_with = "crate::deserialize_present_nonnull",
448        skip_serializing_if = "::std::option::Option::is_none"
449    )]
450    pub fill_color: ::std::option::Option<::std::string::String>,
451    pub index: u32,
452    #[serde(deserialize_with = "crate::deserialize_arc_three_point_kind")]
453    pub kind: ::std::string::String,
454    #[serde(
455        default,
456        deserialize_with = "crate::deserialize_present_nonnull",
457        skip_serializing_if = "::std::option::Option::is_none"
458    )]
459    pub label: ::std::option::Option<::std::string::String>,
460    #[serde(
461        default,
462        deserialize_with = "crate::deserialize_present_nonnull",
463        skip_serializing_if = "::std::option::Option::is_none"
464    )]
465    pub layer: ::std::option::Option<::std::string::String>,
466    #[serde(
467        default,
468        deserialize_with = "crate::deserialize_present_nonnull",
469        skip_serializing_if = "::std::option::Option::is_none"
470    )]
471    pub line_style: ::std::option::Option<PlotterLineStyle>,
472    pub mid_x: crate::JavaScriptSafeInteger,
473    pub mid_y: crate::JavaScriptSafeInteger,
474    #[serde(
475        default,
476        deserialize_with = "crate::deserialize_present_nonnull",
477        skip_serializing_if = "::std::option::Option::is_none"
478    )]
479    pub object_id: ::std::option::Option<::std::string::String>,
480    pub start_x: crate::JavaScriptSafeInteger,
481    pub start_y: crate::JavaScriptSafeInteger,
482    #[serde(
483        default,
484        deserialize_with = "crate::deserialize_present_nonnull",
485        skip_serializing_if = "::std::option::Option::is_none"
486    )]
487    pub stroke_color: ::std::option::Option<::std::string::String>,
488    pub width_nm: crate::JavaScriptSafeInteger,
489}
490///`BoardFootprintBezierCurveOperation`
491///
492/// <details><summary>JSON schema</summary>
493///
494/// ```json
495///{
496///  "type": "object",
497///  "required": [
498///    "ctrl1_x",
499///    "ctrl1_y",
500///    "ctrl2_x",
501///    "ctrl2_y",
502///    "end_x",
503///    "end_y",
504///    "index",
505///    "kind",
506///    "start_x",
507///    "start_y",
508///    "tolerance_nm",
509///    "width_nm"
510///  ],
511///  "properties": {
512///    "ctrl1_x": {
513///      "$ref": "#/$defs/JavaScriptSafeInteger"
514///    },
515///    "ctrl1_y": {
516///      "$ref": "#/$defs/JavaScriptSafeInteger"
517///    },
518///    "ctrl2_x": {
519///      "$ref": "#/$defs/JavaScriptSafeInteger"
520///    },
521///    "ctrl2_y": {
522///      "$ref": "#/$defs/JavaScriptSafeInteger"
523///    },
524///    "data_ref": {
525///      "$ref": "#/$defs/BoardFootprintChildRef"
526///    },
527///    "data_uuid": {
528///      "type": "string"
529///    },
530///    "end_x": {
531///      "$ref": "#/$defs/JavaScriptSafeInteger"
532///    },
533///    "end_y": {
534///      "$ref": "#/$defs/JavaScriptSafeInteger"
535///    },
536///    "extra_attrs": {
537///      "$ref": "#/$defs/BoardFootprintChildAttrs"
538///    },
539///    "index": {
540///      "type": "integer",
541///      "maximum": 4294967295.0,
542///      "minimum": 0.0
543///    },
544///    "kind": {
545///      "type": "string",
546///      "const": "BezierCurve"
547///    },
548///    "label": {
549///      "type": "string"
550///    },
551///    "layer": {
552///      "type": "string"
553///    },
554///    "line_style": {
555///      "$ref": "#/$defs/PlotterLineStyle"
556///    },
557///    "object_id": {
558///      "type": "string"
559///    },
560///    "start_x": {
561///      "$ref": "#/$defs/JavaScriptSafeInteger"
562///    },
563///    "start_y": {
564///      "$ref": "#/$defs/JavaScriptSafeInteger"
565///    },
566///    "stroke_color": {
567///      "type": "string"
568///    },
569///    "tolerance_nm": {
570///      "$ref": "#/$defs/JavaScriptSafeInteger"
571///    },
572///    "width_nm": {
573///      "$ref": "#/$defs/JavaScriptSafeInteger"
574///    }
575///  },
576///  "additionalProperties": false
577///}
578/// ```
579/// </details>
580#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
581#[serde(deny_unknown_fields)]
582pub struct BoardFootprintBezierCurveOperation {
583    pub ctrl1_x: crate::JavaScriptSafeInteger,
584    pub ctrl1_y: crate::JavaScriptSafeInteger,
585    pub ctrl2_x: crate::JavaScriptSafeInteger,
586    pub ctrl2_y: crate::JavaScriptSafeInteger,
587    #[serde(
588        default,
589        deserialize_with = "crate::deserialize_present_nonnull",
590        skip_serializing_if = "::std::option::Option::is_none"
591    )]
592    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
593    #[serde(
594        default,
595        deserialize_with = "crate::deserialize_present_nonnull",
596        skip_serializing_if = "::std::option::Option::is_none"
597    )]
598    pub data_uuid: ::std::option::Option<::std::string::String>,
599    pub end_x: crate::JavaScriptSafeInteger,
600    pub end_y: crate::JavaScriptSafeInteger,
601    #[serde(
602        default,
603        deserialize_with = "crate::deserialize_present_nonnull",
604        skip_serializing_if = "::std::option::Option::is_none"
605    )]
606    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
607    pub index: u32,
608    #[serde(deserialize_with = "crate::deserialize_bezier_curve_kind")]
609    pub kind: ::std::string::String,
610    #[serde(
611        default,
612        deserialize_with = "crate::deserialize_present_nonnull",
613        skip_serializing_if = "::std::option::Option::is_none"
614    )]
615    pub label: ::std::option::Option<::std::string::String>,
616    #[serde(
617        default,
618        deserialize_with = "crate::deserialize_present_nonnull",
619        skip_serializing_if = "::std::option::Option::is_none"
620    )]
621    pub layer: ::std::option::Option<::std::string::String>,
622    #[serde(
623        default,
624        deserialize_with = "crate::deserialize_present_nonnull",
625        skip_serializing_if = "::std::option::Option::is_none"
626    )]
627    pub line_style: ::std::option::Option<PlotterLineStyle>,
628    #[serde(
629        default,
630        deserialize_with = "crate::deserialize_present_nonnull",
631        skip_serializing_if = "::std::option::Option::is_none"
632    )]
633    pub object_id: ::std::option::Option<::std::string::String>,
634    pub start_x: crate::JavaScriptSafeInteger,
635    pub start_y: crate::JavaScriptSafeInteger,
636    #[serde(
637        default,
638        deserialize_with = "crate::deserialize_present_nonnull",
639        skip_serializing_if = "::std::option::Option::is_none"
640    )]
641    pub stroke_color: ::std::option::Option<::std::string::String>,
642    pub tolerance_nm: crate::JavaScriptSafeInteger,
643    pub width_nm: crate::JavaScriptSafeInteger,
644}
645///SVG-enrichment metadata retained on one embedded-footprint child operation.
646///
647/// <details><summary>JSON schema</summary>
648///
649/// ```json
650///{
651///  "description": "SVG-enrichment metadata retained on one embedded-footprint child operation.",
652///  "type": "object",
653///  "required": [
654///    "component",
655///    "component_uid",
656///    "component_uuid",
657///    "footprint",
658///    "footprint_object_index",
659///    "footprint_primitive",
660///    "primitive"
661///  ],
662///  "properties": {
663///    "component": {
664///      "type": "string"
665///    },
666///    "component_uid": {
667///      "type": "string"
668///    },
669///    "component_uuid": {
670///      "type": "string"
671///    },
672///    "footprint": {
673///      "type": "string"
674///    },
675///    "footprint_graphic_kind": {
676///      "anyOf": [
677///        {
678///          "type": "string",
679///          "const": "text-box-border"
680///        },
681///        {
682///          "type": "string",
683///          "const": "line"
684///        },
685///        {
686///          "type": "string",
687///          "const": "arc"
688///        },
689///        {
690///          "type": "string",
691///          "const": "circle"
692///        },
693///        {
694///          "type": "string",
695///          "const": "rect"
696///        },
697///        {
698///          "type": "string",
699///          "const": "poly"
700///        }
701///      ]
702///    },
703///    "footprint_object_index": {
704///      "type": "integer",
705///      "maximum": 4294967295.0,
706///      "minimum": 0.0
707///    },
708///    "footprint_primitive": {
709///      "$ref": "#/$defs/BoardFootprintChildRef"
710///    },
711///    "footprint_subop_index": {
712///      "type": "integer",
713///      "maximum": 4294967295.0,
714///      "minimum": 0.0
715///    },
716///    "footprint_text_role": {
717///      "anyOf": [
718///        {
719///          "type": "string",
720///          "const": "designator"
721///        },
722///        {
723///          "type": "string",
724///          "const": "value"
725///        },
726///        {
727///          "type": "string",
728///          "const": "property"
729///        },
730///        {
731///          "type": "string",
732///          "const": "user"
733///        }
734///      ]
735///    },
736///    "fp_text_type": {
737///      "type": "string"
738///    },
739///    "layer_name": {
740///      "type": "string"
741///    },
742///    "layer_role": {
743///      "$ref": "#/$defs/BoardFootprintLayerRole"
744///    },
745///    "primitive": {
746///      "anyOf": [
747///        {
748///          "type": "string",
749///          "const": "footprint-text"
750///        },
751///        {
752///          "type": "string",
753///          "const": "footprint-graphic"
754///        }
755///      ]
756///    },
757///    "property_name": {
758///      "type": "string"
759///    }
760///  },
761///  "additionalProperties": false
762///}
763/// ```
764/// </details>
765#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
766#[serde(deny_unknown_fields)]
767pub struct BoardFootprintChildAttrs {
768    pub component: ::std::string::String,
769    pub component_uid: ::std::string::String,
770    pub component_uuid: ::std::string::String,
771    pub footprint: ::std::string::String,
772    #[serde(
773        default,
774        deserialize_with = "crate::deserialize_present_nonnull",
775        skip_serializing_if = "::std::option::Option::is_none"
776    )]
777    pub footprint_graphic_kind: ::std::option::Option<BoardFootprintChildAttrsFootprintGraphicKind>,
778    pub footprint_object_index: u32,
779    pub footprint_primitive: BoardFootprintChildRef,
780    #[serde(
781        default,
782        deserialize_with = "crate::deserialize_present_nonnull",
783        skip_serializing_if = "::std::option::Option::is_none"
784    )]
785    pub footprint_subop_index: ::std::option::Option<u32>,
786    #[serde(
787        default,
788        deserialize_with = "crate::deserialize_present_nonnull",
789        skip_serializing_if = "::std::option::Option::is_none"
790    )]
791    pub footprint_text_role: ::std::option::Option<BoardFootprintChildAttrsFootprintTextRole>,
792    #[serde(
793        default,
794        deserialize_with = "crate::deserialize_present_nonnull",
795        skip_serializing_if = "::std::option::Option::is_none"
796    )]
797    pub fp_text_type: ::std::option::Option<::std::string::String>,
798    #[serde(
799        default,
800        deserialize_with = "crate::deserialize_present_nonnull",
801        skip_serializing_if = "::std::option::Option::is_none"
802    )]
803    pub layer_name: ::std::option::Option<::std::string::String>,
804    #[serde(
805        default,
806        deserialize_with = "crate::deserialize_present_nonnull",
807        skip_serializing_if = "::std::option::Option::is_none"
808    )]
809    pub layer_role: ::std::option::Option<BoardFootprintLayerRole>,
810    pub primitive: BoardFootprintChildAttrsPrimitive,
811    #[serde(
812        default,
813        deserialize_with = "crate::deserialize_present_nonnull",
814        skip_serializing_if = "::std::option::Option::is_none"
815    )]
816    pub property_name: ::std::option::Option<::std::string::String>,
817}
818///`BoardFootprintChildAttrsFootprintGraphicKind`
819///
820/// <details><summary>JSON schema</summary>
821///
822/// ```json
823///{
824///  "anyOf": [
825///    {
826///      "type": "string",
827///      "const": "text-box-border"
828///    },
829///    {
830///      "type": "string",
831///      "const": "line"
832///    },
833///    {
834///      "type": "string",
835///      "const": "arc"
836///    },
837///    {
838///      "type": "string",
839///      "const": "circle"
840///    },
841///    {
842///      "type": "string",
843///      "const": "rect"
844///    },
845///    {
846///      "type": "string",
847///      "const": "poly"
848///    }
849///  ]
850///}
851/// ```
852/// </details>
853#[derive(
854    ::serde::Deserialize,
855    ::serde::Serialize,
856    Clone,
857    Copy,
858    Debug,
859    Eq,
860    Hash,
861    Ord,
862    PartialEq,
863    PartialOrd,
864)]
865pub enum BoardFootprintChildAttrsFootprintGraphicKind {
866    #[serde(rename = "text-box-border")]
867    TextBoxBorder,
868    #[serde(rename = "line")]
869    Line,
870    #[serde(rename = "arc")]
871    Arc,
872    #[serde(rename = "circle")]
873    Circle,
874    #[serde(rename = "rect")]
875    Rect,
876    #[serde(rename = "poly")]
877    Poly,
878}
879impl ::std::fmt::Display for BoardFootprintChildAttrsFootprintGraphicKind {
880    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
881        match *self {
882            Self::TextBoxBorder => f.write_str("text-box-border"),
883            Self::Line => f.write_str("line"),
884            Self::Arc => f.write_str("arc"),
885            Self::Circle => f.write_str("circle"),
886            Self::Rect => f.write_str("rect"),
887            Self::Poly => f.write_str("poly"),
888        }
889    }
890}
891impl ::std::str::FromStr for BoardFootprintChildAttrsFootprintGraphicKind {
892    type Err = self::error::ConversionError;
893    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
894        match value {
895            "text-box-border" => Ok(Self::TextBoxBorder),
896            "line" => Ok(Self::Line),
897            "arc" => Ok(Self::Arc),
898            "circle" => Ok(Self::Circle),
899            "rect" => Ok(Self::Rect),
900            "poly" => Ok(Self::Poly),
901            _ => Err("invalid value".into()),
902        }
903    }
904}
905impl ::std::convert::TryFrom<&str> for BoardFootprintChildAttrsFootprintGraphicKind {
906    type Error = self::error::ConversionError;
907    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
908        value.parse()
909    }
910}
911impl ::std::convert::TryFrom<&::std::string::String>
912    for BoardFootprintChildAttrsFootprintGraphicKind
913{
914    type Error = self::error::ConversionError;
915    fn try_from(
916        value: &::std::string::String,
917    ) -> ::std::result::Result<Self, self::error::ConversionError> {
918        value.parse()
919    }
920}
921impl ::std::convert::TryFrom<::std::string::String>
922    for BoardFootprintChildAttrsFootprintGraphicKind
923{
924    type Error = self::error::ConversionError;
925    fn try_from(
926        value: ::std::string::String,
927    ) -> ::std::result::Result<Self, self::error::ConversionError> {
928        value.parse()
929    }
930}
931///`BoardFootprintChildAttrsFootprintTextRole`
932///
933/// <details><summary>JSON schema</summary>
934///
935/// ```json
936///{
937///  "anyOf": [
938///    {
939///      "type": "string",
940///      "const": "designator"
941///    },
942///    {
943///      "type": "string",
944///      "const": "value"
945///    },
946///    {
947///      "type": "string",
948///      "const": "property"
949///    },
950///    {
951///      "type": "string",
952///      "const": "user"
953///    }
954///  ]
955///}
956/// ```
957/// </details>
958#[derive(
959    ::serde::Deserialize,
960    ::serde::Serialize,
961    Clone,
962    Copy,
963    Debug,
964    Eq,
965    Hash,
966    Ord,
967    PartialEq,
968    PartialOrd,
969)]
970pub enum BoardFootprintChildAttrsFootprintTextRole {
971    #[serde(rename = "designator")]
972    Designator,
973    #[serde(rename = "value")]
974    Value,
975    #[serde(rename = "property")]
976    Property,
977    #[serde(rename = "user")]
978    User,
979}
980impl ::std::fmt::Display for BoardFootprintChildAttrsFootprintTextRole {
981    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
982        match *self {
983            Self::Designator => f.write_str("designator"),
984            Self::Value => f.write_str("value"),
985            Self::Property => f.write_str("property"),
986            Self::User => f.write_str("user"),
987        }
988    }
989}
990impl ::std::str::FromStr for BoardFootprintChildAttrsFootprintTextRole {
991    type Err = self::error::ConversionError;
992    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
993        match value {
994            "designator" => Ok(Self::Designator),
995            "value" => Ok(Self::Value),
996            "property" => Ok(Self::Property),
997            "user" => Ok(Self::User),
998            _ => Err("invalid value".into()),
999        }
1000    }
1001}
1002impl ::std::convert::TryFrom<&str> for BoardFootprintChildAttrsFootprintTextRole {
1003    type Error = self::error::ConversionError;
1004    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1005        value.parse()
1006    }
1007}
1008impl ::std::convert::TryFrom<&::std::string::String> for BoardFootprintChildAttrsFootprintTextRole {
1009    type Error = self::error::ConversionError;
1010    fn try_from(
1011        value: &::std::string::String,
1012    ) -> ::std::result::Result<Self, self::error::ConversionError> {
1013        value.parse()
1014    }
1015}
1016impl ::std::convert::TryFrom<::std::string::String> for BoardFootprintChildAttrsFootprintTextRole {
1017    type Error = self::error::ConversionError;
1018    fn try_from(
1019        value: ::std::string::String,
1020    ) -> ::std::result::Result<Self, self::error::ConversionError> {
1021        value.parse()
1022    }
1023}
1024///`BoardFootprintChildAttrsPrimitive`
1025///
1026/// <details><summary>JSON schema</summary>
1027///
1028/// ```json
1029///{
1030///  "anyOf": [
1031///    {
1032///      "type": "string",
1033///      "const": "footprint-text"
1034///    },
1035///    {
1036///      "type": "string",
1037///      "const": "footprint-graphic"
1038///    }
1039///  ]
1040///}
1041/// ```
1042/// </details>
1043#[derive(
1044    ::serde::Deserialize,
1045    ::serde::Serialize,
1046    Clone,
1047    Copy,
1048    Debug,
1049    Eq,
1050    Hash,
1051    Ord,
1052    PartialEq,
1053    PartialOrd,
1054)]
1055pub enum BoardFootprintChildAttrsPrimitive {
1056    #[serde(rename = "footprint-text")]
1057    FootprintText,
1058    #[serde(rename = "footprint-graphic")]
1059    FootprintGraphic,
1060}
1061impl ::std::fmt::Display for BoardFootprintChildAttrsPrimitive {
1062    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1063        match *self {
1064            Self::FootprintText => f.write_str("footprint-text"),
1065            Self::FootprintGraphic => f.write_str("footprint-graphic"),
1066        }
1067    }
1068}
1069impl ::std::str::FromStr for BoardFootprintChildAttrsPrimitive {
1070    type Err = self::error::ConversionError;
1071    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1072        match value {
1073            "footprint-text" => Ok(Self::FootprintText),
1074            "footprint-graphic" => Ok(Self::FootprintGraphic),
1075            _ => Err("invalid value".into()),
1076        }
1077    }
1078}
1079impl ::std::convert::TryFrom<&str> for BoardFootprintChildAttrsPrimitive {
1080    type Error = self::error::ConversionError;
1081    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1082        value.parse()
1083    }
1084}
1085impl ::std::convert::TryFrom<&::std::string::String> for BoardFootprintChildAttrsPrimitive {
1086    type Error = self::error::ConversionError;
1087    fn try_from(
1088        value: &::std::string::String,
1089    ) -> ::std::result::Result<Self, self::error::ConversionError> {
1090        value.parse()
1091    }
1092}
1093impl ::std::convert::TryFrom<::std::string::String> for BoardFootprintChildAttrsPrimitive {
1094    type Error = self::error::ConversionError;
1095    fn try_from(
1096        value: ::std::string::String,
1097    ) -> ::std::result::Result<Self, self::error::ConversionError> {
1098        value.parse()
1099    }
1100}
1101///Source child kinds emitted directly on embedded-footprint drawing operations.
1102///
1103/// <details><summary>JSON schema</summary>
1104///
1105/// ```json
1106///{
1107///  "description": "Source child kinds emitted directly on embedded-footprint drawing operations.",
1108///  "type": "string",
1109///  "enum": [
1110///    "property",
1111///    "fp_text",
1112///    "fp_text_box",
1113///    "fp_line",
1114///    "fp_arc",
1115///    "fp_circle",
1116///    "fp_rect",
1117///    "fp_poly"
1118///  ]
1119///}
1120/// ```
1121/// </details>
1122#[derive(
1123    ::serde::Deserialize,
1124    ::serde::Serialize,
1125    Clone,
1126    Copy,
1127    Debug,
1128    Eq,
1129    Hash,
1130    Ord,
1131    PartialEq,
1132    PartialOrd,
1133)]
1134pub enum BoardFootprintChildRef {
1135    #[serde(rename = "property")]
1136    Property,
1137    #[serde(rename = "fp_text")]
1138    FpText,
1139    #[serde(rename = "fp_text_box")]
1140    FpTextBox,
1141    #[serde(rename = "fp_line")]
1142    FpLine,
1143    #[serde(rename = "fp_arc")]
1144    FpArc,
1145    #[serde(rename = "fp_circle")]
1146    FpCircle,
1147    #[serde(rename = "fp_rect")]
1148    FpRect,
1149    #[serde(rename = "fp_poly")]
1150    FpPoly,
1151}
1152impl ::std::fmt::Display for BoardFootprintChildRef {
1153    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1154        match *self {
1155            Self::Property => f.write_str("property"),
1156            Self::FpText => f.write_str("fp_text"),
1157            Self::FpTextBox => f.write_str("fp_text_box"),
1158            Self::FpLine => f.write_str("fp_line"),
1159            Self::FpArc => f.write_str("fp_arc"),
1160            Self::FpCircle => f.write_str("fp_circle"),
1161            Self::FpRect => f.write_str("fp_rect"),
1162            Self::FpPoly => f.write_str("fp_poly"),
1163        }
1164    }
1165}
1166impl ::std::str::FromStr for BoardFootprintChildRef {
1167    type Err = self::error::ConversionError;
1168    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1169        match value {
1170            "property" => Ok(Self::Property),
1171            "fp_text" => Ok(Self::FpText),
1172            "fp_text_box" => Ok(Self::FpTextBox),
1173            "fp_line" => Ok(Self::FpLine),
1174            "fp_arc" => Ok(Self::FpArc),
1175            "fp_circle" => Ok(Self::FpCircle),
1176            "fp_rect" => Ok(Self::FpRect),
1177            "fp_poly" => Ok(Self::FpPoly),
1178            _ => Err("invalid value".into()),
1179        }
1180    }
1181}
1182impl ::std::convert::TryFrom<&str> for BoardFootprintChildRef {
1183    type Error = self::error::ConversionError;
1184    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1185        value.parse()
1186    }
1187}
1188impl ::std::convert::TryFrom<&::std::string::String> for BoardFootprintChildRef {
1189    type Error = self::error::ConversionError;
1190    fn try_from(
1191        value: &::std::string::String,
1192    ) -> ::std::result::Result<Self, self::error::ConversionError> {
1193        value.parse()
1194    }
1195}
1196impl ::std::convert::TryFrom<::std::string::String> for BoardFootprintChildRef {
1197    type Error = self::error::ConversionError;
1198    fn try_from(
1199        value: ::std::string::String,
1200    ) -> ::std::result::Result<Self, self::error::ConversionError> {
1201        value.parse()
1202    }
1203}
1204///`BoardFootprintCircleOperation`
1205///
1206/// <details><summary>JSON schema</summary>
1207///
1208/// ```json
1209///{
1210///  "type": "object",
1211///  "required": [
1212///    "cx",
1213///    "cy",
1214///    "diameter_nm",
1215///    "fill",
1216///    "index",
1217///    "kind",
1218///    "width_nm"
1219///  ],
1220///  "properties": {
1221///    "cx": {
1222///      "$ref": "#/$defs/JavaScriptSafeInteger"
1223///    },
1224///    "cy": {
1225///      "$ref": "#/$defs/JavaScriptSafeInteger"
1226///    },
1227///    "data_ref": {
1228///      "$ref": "#/$defs/BoardFootprintChildRef"
1229///    },
1230///    "data_uuid": {
1231///      "type": "string"
1232///    },
1233///    "diameter_nm": {
1234///      "$ref": "#/$defs/JavaScriptSafeInteger"
1235///    },
1236///    "extra_attrs": {
1237///      "$ref": "#/$defs/BoardFootprintChildAttrs"
1238///    },
1239///    "fill": {
1240///      "$ref": "#/$defs/PlotterFill"
1241///    },
1242///    "fill_color": {
1243///      "type": "string"
1244///    },
1245///    "index": {
1246///      "type": "integer",
1247///      "maximum": 4294967295.0,
1248///      "minimum": 0.0
1249///    },
1250///    "kind": {
1251///      "type": "string",
1252///      "const": "Circle"
1253///    },
1254///    "label": {
1255///      "type": "string"
1256///    },
1257///    "layer": {
1258///      "type": "string"
1259///    },
1260///    "layers": {
1261///      "type": "array",
1262///      "items": {
1263///        "type": "string"
1264///      }
1265///    },
1266///    "line_style": {
1267///      "$ref": "#/$defs/PlotterLineStyle"
1268///    },
1269///    "mask_margin_nm": {
1270///      "$ref": "#/$defs/JavaScriptSafeInteger"
1271///    },
1272///    "object_id": {
1273///      "type": "string"
1274///    },
1275///    "pad_size_x_nm": {
1276///      "$ref": "#/$defs/JavaScriptSafeInteger"
1277///    },
1278///    "pad_size_y_nm": {
1279///      "$ref": "#/$defs/JavaScriptSafeInteger"
1280///    },
1281///    "role": {
1282///      "$ref": "#/$defs/PlotterDrillRole"
1283///    },
1284///    "stroke_color": {
1285///      "type": "string"
1286///    },
1287///    "width_nm": {
1288///      "$ref": "#/$defs/JavaScriptSafeInteger"
1289///    }
1290///  },
1291///  "additionalProperties": false
1292///}
1293/// ```
1294/// </details>
1295#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1296#[serde(deny_unknown_fields)]
1297pub struct BoardFootprintCircleOperation {
1298    pub cx: crate::JavaScriptSafeInteger,
1299    pub cy: crate::JavaScriptSafeInteger,
1300    #[serde(
1301        default,
1302        deserialize_with = "crate::deserialize_present_nonnull",
1303        skip_serializing_if = "::std::option::Option::is_none"
1304    )]
1305    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
1306    #[serde(
1307        default,
1308        deserialize_with = "crate::deserialize_present_nonnull",
1309        skip_serializing_if = "::std::option::Option::is_none"
1310    )]
1311    pub data_uuid: ::std::option::Option<::std::string::String>,
1312    pub diameter_nm: crate::JavaScriptSafeInteger,
1313    #[serde(
1314        default,
1315        deserialize_with = "crate::deserialize_present_nonnull",
1316        skip_serializing_if = "::std::option::Option::is_none"
1317    )]
1318    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
1319    pub fill: PlotterFill,
1320    #[serde(
1321        default,
1322        deserialize_with = "crate::deserialize_present_nonnull",
1323        skip_serializing_if = "::std::option::Option::is_none"
1324    )]
1325    pub fill_color: ::std::option::Option<::std::string::String>,
1326    pub index: u32,
1327    #[serde(deserialize_with = "crate::deserialize_circle_kind")]
1328    pub kind: ::std::string::String,
1329    #[serde(
1330        default,
1331        deserialize_with = "crate::deserialize_present_nonnull",
1332        skip_serializing_if = "::std::option::Option::is_none"
1333    )]
1334    pub label: ::std::option::Option<::std::string::String>,
1335    #[serde(
1336        default,
1337        deserialize_with = "crate::deserialize_present_nonnull",
1338        skip_serializing_if = "::std::option::Option::is_none"
1339    )]
1340    pub layer: ::std::option::Option<::std::string::String>,
1341    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
1342    pub layers: ::std::vec::Vec<::std::string::String>,
1343    #[serde(
1344        default,
1345        deserialize_with = "crate::deserialize_present_nonnull",
1346        skip_serializing_if = "::std::option::Option::is_none"
1347    )]
1348    pub line_style: ::std::option::Option<PlotterLineStyle>,
1349    #[serde(
1350        default,
1351        deserialize_with = "crate::deserialize_present_nonnull",
1352        skip_serializing_if = "::std::option::Option::is_none"
1353    )]
1354    pub mask_margin_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
1355    #[serde(
1356        default,
1357        deserialize_with = "crate::deserialize_present_nonnull",
1358        skip_serializing_if = "::std::option::Option::is_none"
1359    )]
1360    pub object_id: ::std::option::Option<::std::string::String>,
1361    #[serde(
1362        default,
1363        deserialize_with = "crate::deserialize_present_nonnull",
1364        skip_serializing_if = "::std::option::Option::is_none"
1365    )]
1366    pub pad_size_x_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
1367    #[serde(
1368        default,
1369        deserialize_with = "crate::deserialize_present_nonnull",
1370        skip_serializing_if = "::std::option::Option::is_none"
1371    )]
1372    pub pad_size_y_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
1373    #[serde(
1374        default,
1375        deserialize_with = "crate::deserialize_present_nonnull",
1376        skip_serializing_if = "::std::option::Option::is_none"
1377    )]
1378    pub role: ::std::option::Option<PlotterDrillRole>,
1379    #[serde(
1380        default,
1381        deserialize_with = "crate::deserialize_present_nonnull",
1382        skip_serializing_if = "::std::option::Option::is_none"
1383    )]
1384    pub stroke_color: ::std::option::Option<::std::string::String>,
1385    pub width_nm: crate::JavaScriptSafeInteger,
1386}
1387///Closing operation for one embedded pad or drill SVG group.
1388///
1389/// <details><summary>JSON schema</summary>
1390///
1391/// ```json
1392///{
1393///  "description": "Closing operation for one embedded pad or drill SVG group.",
1394///  "type": "object",
1395///  "required": [
1396///    "index",
1397///    "kind"
1398///  ],
1399///  "properties": {
1400///    "index": {
1401///      "type": "integer",
1402///      "maximum": 4294967295.0,
1403///      "minimum": 0.0
1404///    },
1405///    "kind": {
1406///      "type": "string",
1407///      "const": "EndBlock"
1408///    }
1409///  },
1410///  "additionalProperties": false
1411///}
1412/// ```
1413/// </details>
1414#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1415#[serde(deny_unknown_fields)]
1416pub struct BoardFootprintEndBlockOperation {
1417    pub index: u32,
1418    #[serde(deserialize_with = "crate::deserialize_end_block_kind")]
1419    pub kind: ::std::string::String,
1420}
1421///`BoardFootprintFlashPadCircleOperation`
1422///
1423/// <details><summary>JSON schema</summary>
1424///
1425/// ```json
1426///{
1427///  "type": "object",
1428///  "required": [
1429///    "diameter_nm",
1430///    "index",
1431///    "kind",
1432///    "layers",
1433///    "x",
1434///    "y"
1435///  ],
1436///  "properties": {
1437///    "data_ref": {
1438///      "$ref": "#/$defs/BoardFootprintChildRef"
1439///    },
1440///    "data_uuid": {
1441///      "type": "string"
1442///    },
1443///    "diameter_nm": {
1444///      "$ref": "#/$defs/JavaScriptSafeInteger"
1445///    },
1446///    "extra_attrs": {
1447///      "$ref": "#/$defs/BoardFootprintChildAttrs"
1448///    },
1449///    "index": {
1450///      "type": "integer",
1451///      "maximum": 4294967295.0,
1452///      "minimum": 0.0
1453///    },
1454///    "kind": {
1455///      "type": "string",
1456///      "const": "FlashPadCircle"
1457///    },
1458///    "label": {
1459///      "type": "string"
1460///    },
1461///    "layers": {
1462///      "type": "array",
1463///      "items": {
1464///        "type": "string"
1465///      }
1466///    },
1467///    "mask_margin_nm": {
1468///      "$ref": "#/$defs/JavaScriptSafeInteger"
1469///    },
1470///    "object_id": {
1471///      "type": "string"
1472///    },
1473///    "role": {
1474///      "$ref": "#/$defs/PlotterViaFlashRole"
1475///    },
1476///    "x": {
1477///      "$ref": "#/$defs/JavaScriptSafeInteger"
1478///    },
1479///    "y": {
1480///      "$ref": "#/$defs/JavaScriptSafeInteger"
1481///    }
1482///  },
1483///  "additionalProperties": false
1484///}
1485/// ```
1486/// </details>
1487#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1488#[serde(deny_unknown_fields)]
1489pub struct BoardFootprintFlashPadCircleOperation {
1490    #[serde(
1491        default,
1492        deserialize_with = "crate::deserialize_present_nonnull",
1493        skip_serializing_if = "::std::option::Option::is_none"
1494    )]
1495    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
1496    #[serde(
1497        default,
1498        deserialize_with = "crate::deserialize_present_nonnull",
1499        skip_serializing_if = "::std::option::Option::is_none"
1500    )]
1501    pub data_uuid: ::std::option::Option<::std::string::String>,
1502    pub diameter_nm: crate::JavaScriptSafeInteger,
1503    #[serde(
1504        default,
1505        deserialize_with = "crate::deserialize_present_nonnull",
1506        skip_serializing_if = "::std::option::Option::is_none"
1507    )]
1508    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
1509    pub index: u32,
1510    #[serde(deserialize_with = "crate::deserialize_flash_pad_circle_kind")]
1511    pub kind: ::std::string::String,
1512    #[serde(
1513        default,
1514        deserialize_with = "crate::deserialize_present_nonnull",
1515        skip_serializing_if = "::std::option::Option::is_none"
1516    )]
1517    pub label: ::std::option::Option<::std::string::String>,
1518    pub layers: ::std::vec::Vec<::std::string::String>,
1519    #[serde(
1520        default,
1521        deserialize_with = "crate::deserialize_present_nonnull",
1522        skip_serializing_if = "::std::option::Option::is_none"
1523    )]
1524    pub mask_margin_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
1525    #[serde(
1526        default,
1527        deserialize_with = "crate::deserialize_present_nonnull",
1528        skip_serializing_if = "::std::option::Option::is_none"
1529    )]
1530    pub object_id: ::std::option::Option<::std::string::String>,
1531    #[serde(
1532        default,
1533        deserialize_with = "crate::deserialize_present_nonnull",
1534        skip_serializing_if = "::std::option::Option::is_none"
1535    )]
1536    pub role: ::std::option::Option<PlotterViaFlashRole>,
1537    pub x: crate::JavaScriptSafeInteger,
1538    pub y: crate::JavaScriptSafeInteger,
1539}
1540///`BoardFootprintFlashPadCustomOperation`
1541///
1542/// <details><summary>JSON schema</summary>
1543///
1544/// ```json
1545///{
1546///  "type": "object",
1547///  "required": [
1548///    "index",
1549///    "kind",
1550///    "layers",
1551///    "mask_margin_nm",
1552///    "orient_deg",
1553///    "polygons",
1554///    "size_x_nm",
1555///    "size_y_nm",
1556///    "x",
1557///    "y"
1558///  ],
1559///  "properties": {
1560///    "anchor_shape": {
1561///      "type": "string"
1562///    },
1563///    "data_ref": {
1564///      "$ref": "#/$defs/BoardFootprintChildRef"
1565///    },
1566///    "data_uuid": {
1567///      "type": "string"
1568///    },
1569///    "extra_attrs": {
1570///      "$ref": "#/$defs/BoardFootprintChildAttrs"
1571///    },
1572///    "index": {
1573///      "type": "integer",
1574///      "maximum": 4294967295.0,
1575///      "minimum": 0.0
1576///    },
1577///    "kind": {
1578///      "type": "string",
1579///      "const": "FlashPadCustom"
1580///    },
1581///    "label": {
1582///      "type": "string"
1583///    },
1584///    "layers": {
1585///      "type": "array",
1586///      "items": {
1587///        "type": "string"
1588///      }
1589///    },
1590///    "mask_margin_nm": {
1591///      "$ref": "#/$defs/JavaScriptSafeInteger"
1592///    },
1593///    "object_id": {
1594///      "type": "string"
1595///    },
1596///    "orient_deg": {
1597///      "type": "number"
1598///    },
1599///    "polygon_widths_nm": {
1600///      "type": "array",
1601///      "items": {
1602///        "$ref": "#/$defs/JavaScriptSafeInteger"
1603///      }
1604///    },
1605///    "polygons": {
1606///      "type": "array",
1607///      "items": {
1608///        "type": "array",
1609///        "items": {
1610///          "$ref": "#/$defs/PlotterPoint"
1611///        }
1612///      }
1613///    },
1614///    "size_x_nm": {
1615///      "$ref": "#/$defs/JavaScriptSafeInteger"
1616///    },
1617///    "size_y_nm": {
1618///      "$ref": "#/$defs/JavaScriptSafeInteger"
1619///    },
1620///    "x": {
1621///      "$ref": "#/$defs/JavaScriptSafeInteger"
1622///    },
1623///    "y": {
1624///      "$ref": "#/$defs/JavaScriptSafeInteger"
1625///    }
1626///  },
1627///  "additionalProperties": false
1628///}
1629/// ```
1630/// </details>
1631#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1632#[serde(deny_unknown_fields)]
1633pub struct BoardFootprintFlashPadCustomOperation {
1634    #[serde(
1635        default,
1636        deserialize_with = "crate::deserialize_present_nonnull",
1637        skip_serializing_if = "::std::option::Option::is_none"
1638    )]
1639    pub anchor_shape: ::std::option::Option<::std::string::String>,
1640    #[serde(
1641        default,
1642        deserialize_with = "crate::deserialize_present_nonnull",
1643        skip_serializing_if = "::std::option::Option::is_none"
1644    )]
1645    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
1646    #[serde(
1647        default,
1648        deserialize_with = "crate::deserialize_present_nonnull",
1649        skip_serializing_if = "::std::option::Option::is_none"
1650    )]
1651    pub data_uuid: ::std::option::Option<::std::string::String>,
1652    #[serde(
1653        default,
1654        deserialize_with = "crate::deserialize_present_nonnull",
1655        skip_serializing_if = "::std::option::Option::is_none"
1656    )]
1657    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
1658    pub index: u32,
1659    #[serde(deserialize_with = "crate::deserialize_flash_pad_custom_kind")]
1660    pub kind: ::std::string::String,
1661    #[serde(
1662        default,
1663        deserialize_with = "crate::deserialize_present_nonnull",
1664        skip_serializing_if = "::std::option::Option::is_none"
1665    )]
1666    pub label: ::std::option::Option<::std::string::String>,
1667    pub layers: ::std::vec::Vec<::std::string::String>,
1668    pub mask_margin_nm: crate::JavaScriptSafeInteger,
1669    #[serde(
1670        default,
1671        deserialize_with = "crate::deserialize_present_nonnull",
1672        skip_serializing_if = "::std::option::Option::is_none"
1673    )]
1674    pub object_id: ::std::option::Option<::std::string::String>,
1675    pub orient_deg: f64,
1676    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
1677    pub polygon_widths_nm: ::std::vec::Vec<crate::JavaScriptSafeInteger>,
1678    pub polygons: ::std::vec::Vec<::std::vec::Vec<PlotterPoint>>,
1679    pub size_x_nm: crate::JavaScriptSafeInteger,
1680    pub size_y_nm: crate::JavaScriptSafeInteger,
1681    pub x: crate::JavaScriptSafeInteger,
1682    pub y: crate::JavaScriptSafeInteger,
1683}
1684///`BoardFootprintFlashPadOvalOperation`
1685///
1686/// <details><summary>JSON schema</summary>
1687///
1688/// ```json
1689///{
1690///  "type": "object",
1691///  "required": [
1692///    "index",
1693///    "kind",
1694///    "layers",
1695///    "mask_margin_nm",
1696///    "orient_deg",
1697///    "size_x_nm",
1698///    "size_y_nm",
1699///    "x",
1700///    "y"
1701///  ],
1702///  "properties": {
1703///    "data_ref": {
1704///      "$ref": "#/$defs/BoardFootprintChildRef"
1705///    },
1706///    "data_uuid": {
1707///      "type": "string"
1708///    },
1709///    "extra_attrs": {
1710///      "$ref": "#/$defs/BoardFootprintChildAttrs"
1711///    },
1712///    "index": {
1713///      "type": "integer",
1714///      "maximum": 4294967295.0,
1715///      "minimum": 0.0
1716///    },
1717///    "kind": {
1718///      "type": "string",
1719///      "const": "FlashPadOval"
1720///    },
1721///    "label": {
1722///      "type": "string"
1723///    },
1724///    "layers": {
1725///      "type": "array",
1726///      "items": {
1727///        "type": "string"
1728///      }
1729///    },
1730///    "mask_margin_nm": {
1731///      "$ref": "#/$defs/JavaScriptSafeInteger"
1732///    },
1733///    "object_id": {
1734///      "type": "string"
1735///    },
1736///    "orient_deg": {
1737///      "type": "number"
1738///    },
1739///    "size_x_nm": {
1740///      "$ref": "#/$defs/JavaScriptSafeInteger"
1741///    },
1742///    "size_y_nm": {
1743///      "$ref": "#/$defs/JavaScriptSafeInteger"
1744///    },
1745///    "x": {
1746///      "$ref": "#/$defs/JavaScriptSafeInteger"
1747///    },
1748///    "y": {
1749///      "$ref": "#/$defs/JavaScriptSafeInteger"
1750///    }
1751///  },
1752///  "additionalProperties": false
1753///}
1754/// ```
1755/// </details>
1756#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1757#[serde(deny_unknown_fields)]
1758pub struct BoardFootprintFlashPadOvalOperation {
1759    #[serde(
1760        default,
1761        deserialize_with = "crate::deserialize_present_nonnull",
1762        skip_serializing_if = "::std::option::Option::is_none"
1763    )]
1764    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
1765    #[serde(
1766        default,
1767        deserialize_with = "crate::deserialize_present_nonnull",
1768        skip_serializing_if = "::std::option::Option::is_none"
1769    )]
1770    pub data_uuid: ::std::option::Option<::std::string::String>,
1771    #[serde(
1772        default,
1773        deserialize_with = "crate::deserialize_present_nonnull",
1774        skip_serializing_if = "::std::option::Option::is_none"
1775    )]
1776    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
1777    pub index: u32,
1778    #[serde(deserialize_with = "crate::deserialize_flash_pad_oval_kind")]
1779    pub kind: ::std::string::String,
1780    #[serde(
1781        default,
1782        deserialize_with = "crate::deserialize_present_nonnull",
1783        skip_serializing_if = "::std::option::Option::is_none"
1784    )]
1785    pub label: ::std::option::Option<::std::string::String>,
1786    pub layers: ::std::vec::Vec<::std::string::String>,
1787    pub mask_margin_nm: crate::JavaScriptSafeInteger,
1788    #[serde(
1789        default,
1790        deserialize_with = "crate::deserialize_present_nonnull",
1791        skip_serializing_if = "::std::option::Option::is_none"
1792    )]
1793    pub object_id: ::std::option::Option<::std::string::String>,
1794    pub orient_deg: f64,
1795    pub size_x_nm: crate::JavaScriptSafeInteger,
1796    pub size_y_nm: crate::JavaScriptSafeInteger,
1797    pub x: crate::JavaScriptSafeInteger,
1798    pub y: crate::JavaScriptSafeInteger,
1799}
1800///`BoardFootprintFlashPadRectOperation`
1801///
1802/// <details><summary>JSON schema</summary>
1803///
1804/// ```json
1805///{
1806///  "type": "object",
1807///  "required": [
1808///    "index",
1809///    "kind",
1810///    "layers",
1811///    "mask_margin_nm",
1812///    "orient_deg",
1813///    "size_x_nm",
1814///    "size_y_nm",
1815///    "x",
1816///    "y"
1817///  ],
1818///  "properties": {
1819///    "data_ref": {
1820///      "$ref": "#/$defs/BoardFootprintChildRef"
1821///    },
1822///    "data_uuid": {
1823///      "type": "string"
1824///    },
1825///    "extra_attrs": {
1826///      "$ref": "#/$defs/BoardFootprintChildAttrs"
1827///    },
1828///    "index": {
1829///      "type": "integer",
1830///      "maximum": 4294967295.0,
1831///      "minimum": 0.0
1832///    },
1833///    "kind": {
1834///      "type": "string",
1835///      "const": "FlashPadRect"
1836///    },
1837///    "label": {
1838///      "type": "string"
1839///    },
1840///    "layers": {
1841///      "type": "array",
1842///      "items": {
1843///        "type": "string"
1844///      }
1845///    },
1846///    "mask_margin_nm": {
1847///      "$ref": "#/$defs/JavaScriptSafeInteger"
1848///    },
1849///    "object_id": {
1850///      "type": "string"
1851///    },
1852///    "orient_deg": {
1853///      "type": "number"
1854///    },
1855///    "size_x_nm": {
1856///      "$ref": "#/$defs/JavaScriptSafeInteger"
1857///    },
1858///    "size_y_nm": {
1859///      "$ref": "#/$defs/JavaScriptSafeInteger"
1860///    },
1861///    "x": {
1862///      "$ref": "#/$defs/JavaScriptSafeInteger"
1863///    },
1864///    "y": {
1865///      "$ref": "#/$defs/JavaScriptSafeInteger"
1866///    }
1867///  },
1868///  "additionalProperties": false
1869///}
1870/// ```
1871/// </details>
1872#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1873#[serde(deny_unknown_fields)]
1874pub struct BoardFootprintFlashPadRectOperation {
1875    #[serde(
1876        default,
1877        deserialize_with = "crate::deserialize_present_nonnull",
1878        skip_serializing_if = "::std::option::Option::is_none"
1879    )]
1880    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
1881    #[serde(
1882        default,
1883        deserialize_with = "crate::deserialize_present_nonnull",
1884        skip_serializing_if = "::std::option::Option::is_none"
1885    )]
1886    pub data_uuid: ::std::option::Option<::std::string::String>,
1887    #[serde(
1888        default,
1889        deserialize_with = "crate::deserialize_present_nonnull",
1890        skip_serializing_if = "::std::option::Option::is_none"
1891    )]
1892    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
1893    pub index: u32,
1894    #[serde(deserialize_with = "crate::deserialize_flash_pad_rect_kind")]
1895    pub kind: ::std::string::String,
1896    #[serde(
1897        default,
1898        deserialize_with = "crate::deserialize_present_nonnull",
1899        skip_serializing_if = "::std::option::Option::is_none"
1900    )]
1901    pub label: ::std::option::Option<::std::string::String>,
1902    pub layers: ::std::vec::Vec<::std::string::String>,
1903    pub mask_margin_nm: crate::JavaScriptSafeInteger,
1904    #[serde(
1905        default,
1906        deserialize_with = "crate::deserialize_present_nonnull",
1907        skip_serializing_if = "::std::option::Option::is_none"
1908    )]
1909    pub object_id: ::std::option::Option<::std::string::String>,
1910    pub orient_deg: f64,
1911    pub size_x_nm: crate::JavaScriptSafeInteger,
1912    pub size_y_nm: crate::JavaScriptSafeInteger,
1913    pub x: crate::JavaScriptSafeInteger,
1914    pub y: crate::JavaScriptSafeInteger,
1915}
1916///`BoardFootprintFlashPadRoundRectOperation`
1917///
1918/// <details><summary>JSON schema</summary>
1919///
1920/// ```json
1921///{
1922///  "type": "object",
1923///  "required": [
1924///    "corner_radius_nm",
1925///    "index",
1926///    "kind",
1927///    "layers",
1928///    "mask_margin_nm",
1929///    "orient_deg",
1930///    "size_x_nm",
1931///    "size_y_nm",
1932///    "x",
1933///    "y"
1934///  ],
1935///  "properties": {
1936///    "corner_radius_nm": {
1937///      "$ref": "#/$defs/JavaScriptSafeInteger"
1938///    },
1939///    "data_ref": {
1940///      "$ref": "#/$defs/BoardFootprintChildRef"
1941///    },
1942///    "data_uuid": {
1943///      "type": "string"
1944///    },
1945///    "extra_attrs": {
1946///      "$ref": "#/$defs/BoardFootprintChildAttrs"
1947///    },
1948///    "index": {
1949///      "type": "integer",
1950///      "maximum": 4294967295.0,
1951///      "minimum": 0.0
1952///    },
1953///    "kind": {
1954///      "type": "string",
1955///      "const": "FlashPadRoundRect"
1956///    },
1957///    "label": {
1958///      "type": "string"
1959///    },
1960///    "layers": {
1961///      "type": "array",
1962///      "items": {
1963///        "type": "string"
1964///      }
1965///    },
1966///    "mask_margin_nm": {
1967///      "$ref": "#/$defs/JavaScriptSafeInteger"
1968///    },
1969///    "object_id": {
1970///      "type": "string"
1971///    },
1972///    "orient_deg": {
1973///      "type": "number"
1974///    },
1975///    "size_x_nm": {
1976///      "$ref": "#/$defs/JavaScriptSafeInteger"
1977///    },
1978///    "size_y_nm": {
1979///      "$ref": "#/$defs/JavaScriptSafeInteger"
1980///    },
1981///    "x": {
1982///      "$ref": "#/$defs/JavaScriptSafeInteger"
1983///    },
1984///    "y": {
1985///      "$ref": "#/$defs/JavaScriptSafeInteger"
1986///    }
1987///  },
1988///  "additionalProperties": false
1989///}
1990/// ```
1991/// </details>
1992#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1993#[serde(deny_unknown_fields)]
1994pub struct BoardFootprintFlashPadRoundRectOperation {
1995    pub corner_radius_nm: crate::JavaScriptSafeInteger,
1996    #[serde(
1997        default,
1998        deserialize_with = "crate::deserialize_present_nonnull",
1999        skip_serializing_if = "::std::option::Option::is_none"
2000    )]
2001    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
2002    #[serde(
2003        default,
2004        deserialize_with = "crate::deserialize_present_nonnull",
2005        skip_serializing_if = "::std::option::Option::is_none"
2006    )]
2007    pub data_uuid: ::std::option::Option<::std::string::String>,
2008    #[serde(
2009        default,
2010        deserialize_with = "crate::deserialize_present_nonnull",
2011        skip_serializing_if = "::std::option::Option::is_none"
2012    )]
2013    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
2014    pub index: u32,
2015    #[serde(deserialize_with = "crate::deserialize_flash_pad_round_rect_kind")]
2016    pub kind: ::std::string::String,
2017    #[serde(
2018        default,
2019        deserialize_with = "crate::deserialize_present_nonnull",
2020        skip_serializing_if = "::std::option::Option::is_none"
2021    )]
2022    pub label: ::std::option::Option<::std::string::String>,
2023    pub layers: ::std::vec::Vec<::std::string::String>,
2024    pub mask_margin_nm: crate::JavaScriptSafeInteger,
2025    #[serde(
2026        default,
2027        deserialize_with = "crate::deserialize_present_nonnull",
2028        skip_serializing_if = "::std::option::Option::is_none"
2029    )]
2030    pub object_id: ::std::option::Option<::std::string::String>,
2031    pub orient_deg: f64,
2032    pub size_x_nm: crate::JavaScriptSafeInteger,
2033    pub size_y_nm: crate::JavaScriptSafeInteger,
2034    pub x: crate::JavaScriptSafeInteger,
2035    pub y: crate::JavaScriptSafeInteger,
2036}
2037///`BoardFootprintFlashPadTrapezOperation`
2038///
2039/// <details><summary>JSON schema</summary>
2040///
2041/// ```json
2042///{
2043///  "type": "object",
2044///  "required": [
2045///    "corners",
2046///    "index",
2047///    "kind",
2048///    "layers",
2049///    "mask_margin_nm",
2050///    "orient_deg",
2051///    "x",
2052///    "y"
2053///  ],
2054///  "properties": {
2055///    "corners": {
2056///      "$ref": "#/$defs/PlotterQuad"
2057///    },
2058///    "data_ref": {
2059///      "$ref": "#/$defs/BoardFootprintChildRef"
2060///    },
2061///    "data_uuid": {
2062///      "type": "string"
2063///    },
2064///    "extra_attrs": {
2065///      "$ref": "#/$defs/BoardFootprintChildAttrs"
2066///    },
2067///    "index": {
2068///      "type": "integer",
2069///      "maximum": 4294967295.0,
2070///      "minimum": 0.0
2071///    },
2072///    "kind": {
2073///      "type": "string",
2074///      "const": "FlashPadTrapez"
2075///    },
2076///    "label": {
2077///      "type": "string"
2078///    },
2079///    "layers": {
2080///      "type": "array",
2081///      "items": {
2082///        "type": "string"
2083///      }
2084///    },
2085///    "mask_margin_nm": {
2086///      "$ref": "#/$defs/JavaScriptSafeInteger"
2087///    },
2088///    "object_id": {
2089///      "type": "string"
2090///    },
2091///    "orient_deg": {
2092///      "type": "number"
2093///    },
2094///    "x": {
2095///      "$ref": "#/$defs/JavaScriptSafeInteger"
2096///    },
2097///    "y": {
2098///      "$ref": "#/$defs/JavaScriptSafeInteger"
2099///    }
2100///  },
2101///  "additionalProperties": false
2102///}
2103/// ```
2104/// </details>
2105#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2106#[serde(deny_unknown_fields)]
2107pub struct BoardFootprintFlashPadTrapezOperation {
2108    pub corners: PlotterQuad,
2109    #[serde(
2110        default,
2111        deserialize_with = "crate::deserialize_present_nonnull",
2112        skip_serializing_if = "::std::option::Option::is_none"
2113    )]
2114    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
2115    #[serde(
2116        default,
2117        deserialize_with = "crate::deserialize_present_nonnull",
2118        skip_serializing_if = "::std::option::Option::is_none"
2119    )]
2120    pub data_uuid: ::std::option::Option<::std::string::String>,
2121    #[serde(
2122        default,
2123        deserialize_with = "crate::deserialize_present_nonnull",
2124        skip_serializing_if = "::std::option::Option::is_none"
2125    )]
2126    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
2127    pub index: u32,
2128    #[serde(deserialize_with = "crate::deserialize_flash_pad_trapez_kind")]
2129    pub kind: ::std::string::String,
2130    #[serde(
2131        default,
2132        deserialize_with = "crate::deserialize_present_nonnull",
2133        skip_serializing_if = "::std::option::Option::is_none"
2134    )]
2135    pub label: ::std::option::Option<::std::string::String>,
2136    pub layers: ::std::vec::Vec<::std::string::String>,
2137    pub mask_margin_nm: crate::JavaScriptSafeInteger,
2138    #[serde(
2139        default,
2140        deserialize_with = "crate::deserialize_present_nonnull",
2141        skip_serializing_if = "::std::option::Option::is_none"
2142    )]
2143    pub object_id: ::std::option::Option<::std::string::String>,
2144    pub orient_deg: f64,
2145    pub x: crate::JavaScriptSafeInteger,
2146    pub y: crate::JavaScriptSafeInteger,
2147}
2148///Normalized PCB layer roles mirrored by enriched footprint-child metadata.
2149///
2150/// <details><summary>JSON schema</summary>
2151///
2152/// ```json
2153///{
2154///  "description": "Normalized PCB layer roles mirrored by enriched footprint-child metadata.",
2155///  "type": "string",
2156///  "enum": [
2157///    "copper",
2158///    "silkscreen",
2159///    "soldermask",
2160///    "paste",
2161///    "fab",
2162///    "courtyard",
2163///    "board-outline",
2164///    "drill",
2165///    "user",
2166///    "other"
2167///  ]
2168///}
2169/// ```
2170/// </details>
2171#[derive(
2172    ::serde::Deserialize,
2173    ::serde::Serialize,
2174    Clone,
2175    Copy,
2176    Debug,
2177    Eq,
2178    Hash,
2179    Ord,
2180    PartialEq,
2181    PartialOrd,
2182)]
2183pub enum BoardFootprintLayerRole {
2184    #[serde(rename = "copper")]
2185    Copper,
2186    #[serde(rename = "silkscreen")]
2187    Silkscreen,
2188    #[serde(rename = "soldermask")]
2189    Soldermask,
2190    #[serde(rename = "paste")]
2191    Paste,
2192    #[serde(rename = "fab")]
2193    Fab,
2194    #[serde(rename = "courtyard")]
2195    Courtyard,
2196    #[serde(rename = "board-outline")]
2197    BoardOutline,
2198    #[serde(rename = "drill")]
2199    Drill,
2200    #[serde(rename = "user")]
2201    User,
2202    #[serde(rename = "other")]
2203    Other,
2204}
2205impl ::std::fmt::Display for BoardFootprintLayerRole {
2206    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2207        match *self {
2208            Self::Copper => f.write_str("copper"),
2209            Self::Silkscreen => f.write_str("silkscreen"),
2210            Self::Soldermask => f.write_str("soldermask"),
2211            Self::Paste => f.write_str("paste"),
2212            Self::Fab => f.write_str("fab"),
2213            Self::Courtyard => f.write_str("courtyard"),
2214            Self::BoardOutline => f.write_str("board-outline"),
2215            Self::Drill => f.write_str("drill"),
2216            Self::User => f.write_str("user"),
2217            Self::Other => f.write_str("other"),
2218        }
2219    }
2220}
2221impl ::std::str::FromStr for BoardFootprintLayerRole {
2222    type Err = self::error::ConversionError;
2223    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2224        match value {
2225            "copper" => Ok(Self::Copper),
2226            "silkscreen" => Ok(Self::Silkscreen),
2227            "soldermask" => Ok(Self::Soldermask),
2228            "paste" => Ok(Self::Paste),
2229            "fab" => Ok(Self::Fab),
2230            "courtyard" => Ok(Self::Courtyard),
2231            "board-outline" => Ok(Self::BoardOutline),
2232            "drill" => Ok(Self::Drill),
2233            "user" => Ok(Self::User),
2234            "other" => Ok(Self::Other),
2235            _ => Err("invalid value".into()),
2236        }
2237    }
2238}
2239impl ::std::convert::TryFrom<&str> for BoardFootprintLayerRole {
2240    type Error = self::error::ConversionError;
2241    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2242        value.parse()
2243    }
2244}
2245impl ::std::convert::TryFrom<&::std::string::String> for BoardFootprintLayerRole {
2246    type Error = self::error::ConversionError;
2247    fn try_from(
2248        value: &::std::string::String,
2249    ) -> ::std::result::Result<Self, self::error::ConversionError> {
2250        value.parse()
2251    }
2252}
2253impl ::std::convert::TryFrom<::std::string::String> for BoardFootprintLayerRole {
2254    type Error = self::error::ConversionError;
2255    fn try_from(
2256        value: ::std::string::String,
2257    ) -> ::std::result::Result<Self, self::error::ConversionError> {
2258        value.parse()
2259    }
2260}
2261///Strict operation vocabulary for one board-embedded footprint record.
2262///
2263/// <details><summary>JSON schema</summary>
2264///
2265/// ```json
2266///{
2267///  "description": "Strict operation vocabulary for one board-embedded footprint record.",
2268///  "oneOf": [
2269///    {
2270///      "$ref": "#/$defs/BoardFootprintThickSegmentOperation"
2271///    },
2272///    {
2273///      "$ref": "#/$defs/BoardFootprintArcThreePointOperation"
2274///    },
2275///    {
2276///      "$ref": "#/$defs/BoardFootprintCircleOperation"
2277///    },
2278///    {
2279///      "$ref": "#/$defs/BoardFootprintRectOperation"
2280///    },
2281///    {
2282///      "$ref": "#/$defs/BoardFootprintPlotPolyOperation"
2283///    },
2284///    {
2285///      "$ref": "#/$defs/BoardFootprintBezierCurveOperation"
2286///    },
2287///    {
2288///      "$ref": "#/$defs/BoardFootprintTextOperation"
2289///    },
2290///    {
2291///      "$ref": "#/$defs/BoardFootprintFlashPadCircleOperation"
2292///    },
2293///    {
2294///      "$ref": "#/$defs/BoardFootprintFlashPadOvalOperation"
2295///    },
2296///    {
2297///      "$ref": "#/$defs/BoardFootprintFlashPadRectOperation"
2298///    },
2299///    {
2300///      "$ref": "#/$defs/BoardFootprintFlashPadRoundRectOperation"
2301///    },
2302///    {
2303///      "$ref": "#/$defs/BoardFootprintFlashPadCustomOperation"
2304///    },
2305///    {
2306///      "$ref": "#/$defs/BoardFootprintFlashPadTrapezOperation"
2307///    },
2308///    {
2309///      "$ref": "#/$defs/BoardFootprintStartBlockOperation"
2310///    },
2311///    {
2312///      "$ref": "#/$defs/BoardFootprintEndBlockOperation"
2313///    }
2314///  ]
2315///}
2316/// ```
2317/// </details>
2318#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2319#[serde(untagged)]
2320pub enum BoardFootprintOperation {
2321    ThickSegmentOperation(BoardFootprintThickSegmentOperation),
2322    ArcThreePointOperation(BoardFootprintArcThreePointOperation),
2323    CircleOperation(BoardFootprintCircleOperation),
2324    RectOperation(BoardFootprintRectOperation),
2325    PlotPolyOperation(BoardFootprintPlotPolyOperation),
2326    BezierCurveOperation(BoardFootprintBezierCurveOperation),
2327    TextOperation(BoardFootprintTextOperation),
2328    FlashPadCircleOperation(BoardFootprintFlashPadCircleOperation),
2329    FlashPadOvalOperation(BoardFootprintFlashPadOvalOperation),
2330    FlashPadRectOperation(BoardFootprintFlashPadRectOperation),
2331    FlashPadRoundRectOperation(BoardFootprintFlashPadRoundRectOperation),
2332    FlashPadCustomOperation(BoardFootprintFlashPadCustomOperation),
2333    FlashPadTrapezOperation(BoardFootprintFlashPadTrapezOperation),
2334    StartBlockOperation(BoardFootprintStartBlockOperation),
2335    EndBlockOperation(BoardFootprintEndBlockOperation),
2336}
2337impl ::std::convert::From<BoardFootprintThickSegmentOperation> for BoardFootprintOperation {
2338    fn from(value: BoardFootprintThickSegmentOperation) -> Self {
2339        Self::ThickSegmentOperation(value)
2340    }
2341}
2342impl ::std::convert::From<BoardFootprintArcThreePointOperation> for BoardFootprintOperation {
2343    fn from(value: BoardFootprintArcThreePointOperation) -> Self {
2344        Self::ArcThreePointOperation(value)
2345    }
2346}
2347impl ::std::convert::From<BoardFootprintCircleOperation> for BoardFootprintOperation {
2348    fn from(value: BoardFootprintCircleOperation) -> Self {
2349        Self::CircleOperation(value)
2350    }
2351}
2352impl ::std::convert::From<BoardFootprintRectOperation> for BoardFootprintOperation {
2353    fn from(value: BoardFootprintRectOperation) -> Self {
2354        Self::RectOperation(value)
2355    }
2356}
2357impl ::std::convert::From<BoardFootprintPlotPolyOperation> for BoardFootprintOperation {
2358    fn from(value: BoardFootprintPlotPolyOperation) -> Self {
2359        Self::PlotPolyOperation(value)
2360    }
2361}
2362impl ::std::convert::From<BoardFootprintBezierCurveOperation> for BoardFootprintOperation {
2363    fn from(value: BoardFootprintBezierCurveOperation) -> Self {
2364        Self::BezierCurveOperation(value)
2365    }
2366}
2367impl ::std::convert::From<BoardFootprintTextOperation> for BoardFootprintOperation {
2368    fn from(value: BoardFootprintTextOperation) -> Self {
2369        Self::TextOperation(value)
2370    }
2371}
2372impl ::std::convert::From<BoardFootprintFlashPadCircleOperation> for BoardFootprintOperation {
2373    fn from(value: BoardFootprintFlashPadCircleOperation) -> Self {
2374        Self::FlashPadCircleOperation(value)
2375    }
2376}
2377impl ::std::convert::From<BoardFootprintFlashPadOvalOperation> for BoardFootprintOperation {
2378    fn from(value: BoardFootprintFlashPadOvalOperation) -> Self {
2379        Self::FlashPadOvalOperation(value)
2380    }
2381}
2382impl ::std::convert::From<BoardFootprintFlashPadRectOperation> for BoardFootprintOperation {
2383    fn from(value: BoardFootprintFlashPadRectOperation) -> Self {
2384        Self::FlashPadRectOperation(value)
2385    }
2386}
2387impl ::std::convert::From<BoardFootprintFlashPadRoundRectOperation> for BoardFootprintOperation {
2388    fn from(value: BoardFootprintFlashPadRoundRectOperation) -> Self {
2389        Self::FlashPadRoundRectOperation(value)
2390    }
2391}
2392impl ::std::convert::From<BoardFootprintFlashPadCustomOperation> for BoardFootprintOperation {
2393    fn from(value: BoardFootprintFlashPadCustomOperation) -> Self {
2394        Self::FlashPadCustomOperation(value)
2395    }
2396}
2397impl ::std::convert::From<BoardFootprintFlashPadTrapezOperation> for BoardFootprintOperation {
2398    fn from(value: BoardFootprintFlashPadTrapezOperation) -> Self {
2399        Self::FlashPadTrapezOperation(value)
2400    }
2401}
2402impl ::std::convert::From<BoardFootprintStartBlockOperation> for BoardFootprintOperation {
2403    fn from(value: BoardFootprintStartBlockOperation) -> Self {
2404        Self::StartBlockOperation(value)
2405    }
2406}
2407impl ::std::convert::From<BoardFootprintEndBlockOperation> for BoardFootprintOperation {
2408    fn from(value: BoardFootprintEndBlockOperation) -> Self {
2409        Self::EndBlockOperation(value)
2410    }
2411}
2412///Stringified SVG-enrichment attributes on an embedded pad block.
2413///
2414/// <details><summary>JSON schema</summary>
2415///
2416/// ```json
2417///{
2418///  "description": "Stringified SVG-enrichment attributes on an embedded pad block.",
2419///  "type": "object",
2420///  "required": [
2421///    "primitive"
2422///  ],
2423///  "properties": {
2424///    "component": {
2425///      "type": "string"
2426///    },
2427///    "component_uid": {
2428///      "type": "string"
2429///    },
2430///    "component_uuid": {
2431///      "type": "string"
2432///    },
2433///    "footprint": {
2434///      "type": "string"
2435///    },
2436///    "hole_diameter_mm": {
2437///      "type": "string"
2438///    },
2439///    "hole_height_mm": {
2440///      "type": "string"
2441///    },
2442///    "hole_kind": {
2443///      "anyOf": [
2444///        {
2445///          "type": "string",
2446///          "const": "round"
2447///        },
2448///        {
2449///          "type": "string",
2450///          "const": "slot"
2451///        }
2452///      ]
2453///    },
2454///    "hole_owner": {
2455///      "type": "string"
2456///    },
2457///    "hole_plating": {
2458///      "anyOf": [
2459///        {
2460///          "type": "string",
2461///          "const": "plated"
2462///        },
2463///        {
2464///          "type": "string",
2465///          "const": "non_plated"
2466///        }
2467///      ]
2468///    },
2469///    "hole_render": {
2470///      "type": "string",
2471///      "const": "drill"
2472///    },
2473///    "hole_width_mm": {
2474///      "type": "string"
2475///    },
2476///    "layer_names": {
2477///      "type": "string"
2478///    },
2479///    "net": {
2480///      "type": "string"
2481///    },
2482///    "net_class": {
2483///      "type": "string"
2484///    },
2485///    "net_classes": {
2486///      "type": "string"
2487///    },
2488///    "net_id": {
2489///      "type": "string"
2490///    },
2491///    "net_index": {
2492///      "type": "string"
2493///    },
2494///    "pad_designator": {
2495///      "type": "string"
2496///    },
2497///    "pad_number": {
2498///      "type": "string"
2499///    },
2500///    "pad_shape": {
2501///      "type": "string"
2502///    },
2503///    "pad_type": {
2504///      "type": "string"
2505///    },
2506///    "primitive": {
2507///      "anyOf": [
2508///        {
2509///          "type": "string",
2510///          "const": "pad"
2511///        },
2512///        {
2513///          "type": "string",
2514///          "const": "pad-hole"
2515///        }
2516///      ]
2517///    }
2518///  },
2519///  "additionalProperties": false
2520///}
2521/// ```
2522/// </details>
2523#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2524#[serde(deny_unknown_fields)]
2525pub struct BoardFootprintPadBlockAttrs {
2526    #[serde(
2527        default,
2528        deserialize_with = "crate::deserialize_present_nonnull",
2529        skip_serializing_if = "::std::option::Option::is_none"
2530    )]
2531    pub component: ::std::option::Option<::std::string::String>,
2532    #[serde(
2533        default,
2534        deserialize_with = "crate::deserialize_present_nonnull",
2535        skip_serializing_if = "::std::option::Option::is_none"
2536    )]
2537    pub component_uid: ::std::option::Option<::std::string::String>,
2538    #[serde(
2539        default,
2540        deserialize_with = "crate::deserialize_present_nonnull",
2541        skip_serializing_if = "::std::option::Option::is_none"
2542    )]
2543    pub component_uuid: ::std::option::Option<::std::string::String>,
2544    #[serde(
2545        default,
2546        deserialize_with = "crate::deserialize_present_nonnull",
2547        skip_serializing_if = "::std::option::Option::is_none"
2548    )]
2549    pub footprint: ::std::option::Option<::std::string::String>,
2550    #[serde(
2551        default,
2552        deserialize_with = "crate::deserialize_present_nonnull",
2553        skip_serializing_if = "::std::option::Option::is_none"
2554    )]
2555    pub hole_diameter_mm: ::std::option::Option<::std::string::String>,
2556    #[serde(
2557        default,
2558        deserialize_with = "crate::deserialize_present_nonnull",
2559        skip_serializing_if = "::std::option::Option::is_none"
2560    )]
2561    pub hole_height_mm: ::std::option::Option<::std::string::String>,
2562    #[serde(
2563        default,
2564        deserialize_with = "crate::deserialize_present_nonnull",
2565        skip_serializing_if = "::std::option::Option::is_none"
2566    )]
2567    pub hole_kind: ::std::option::Option<BoardFootprintPadBlockAttrsHoleKind>,
2568    #[serde(
2569        default,
2570        deserialize_with = "crate::deserialize_present_nonnull",
2571        skip_serializing_if = "::std::option::Option::is_none"
2572    )]
2573    pub hole_owner: ::std::option::Option<::std::string::String>,
2574    #[serde(
2575        default,
2576        deserialize_with = "crate::deserialize_present_nonnull",
2577        skip_serializing_if = "::std::option::Option::is_none"
2578    )]
2579    pub hole_plating: ::std::option::Option<BoardFootprintPadBlockAttrsHolePlating>,
2580    #[serde(
2581        default,
2582        deserialize_with = "crate::deserialize_present_nonnull",
2583        skip_serializing_if = "::std::option::Option::is_none"
2584    )]
2585    pub hole_render: ::std::option::Option<::std::string::String>,
2586    #[serde(
2587        default,
2588        deserialize_with = "crate::deserialize_present_nonnull",
2589        skip_serializing_if = "::std::option::Option::is_none"
2590    )]
2591    pub hole_width_mm: ::std::option::Option<::std::string::String>,
2592    #[serde(
2593        default,
2594        deserialize_with = "crate::deserialize_present_nonnull",
2595        skip_serializing_if = "::std::option::Option::is_none"
2596    )]
2597    pub layer_names: ::std::option::Option<::std::string::String>,
2598    #[serde(
2599        default,
2600        deserialize_with = "crate::deserialize_present_nonnull",
2601        skip_serializing_if = "::std::option::Option::is_none"
2602    )]
2603    pub net: ::std::option::Option<::std::string::String>,
2604    #[serde(
2605        default,
2606        deserialize_with = "crate::deserialize_present_nonnull",
2607        skip_serializing_if = "::std::option::Option::is_none"
2608    )]
2609    pub net_class: ::std::option::Option<::std::string::String>,
2610    #[serde(
2611        default,
2612        deserialize_with = "crate::deserialize_present_nonnull",
2613        skip_serializing_if = "::std::option::Option::is_none"
2614    )]
2615    pub net_classes: ::std::option::Option<::std::string::String>,
2616    #[serde(
2617        default,
2618        deserialize_with = "crate::deserialize_present_nonnull",
2619        skip_serializing_if = "::std::option::Option::is_none"
2620    )]
2621    pub net_id: ::std::option::Option<::std::string::String>,
2622    #[serde(
2623        default,
2624        deserialize_with = "crate::deserialize_present_nonnull",
2625        skip_serializing_if = "::std::option::Option::is_none"
2626    )]
2627    pub net_index: ::std::option::Option<::std::string::String>,
2628    #[serde(
2629        default,
2630        deserialize_with = "crate::deserialize_present_nonnull",
2631        skip_serializing_if = "::std::option::Option::is_none"
2632    )]
2633    pub pad_designator: ::std::option::Option<::std::string::String>,
2634    #[serde(
2635        default,
2636        deserialize_with = "crate::deserialize_present_nonnull",
2637        skip_serializing_if = "::std::option::Option::is_none"
2638    )]
2639    pub pad_number: ::std::option::Option<::std::string::String>,
2640    #[serde(
2641        default,
2642        deserialize_with = "crate::deserialize_present_nonnull",
2643        skip_serializing_if = "::std::option::Option::is_none"
2644    )]
2645    pub pad_shape: ::std::option::Option<::std::string::String>,
2646    #[serde(
2647        default,
2648        deserialize_with = "crate::deserialize_present_nonnull",
2649        skip_serializing_if = "::std::option::Option::is_none"
2650    )]
2651    pub pad_type: ::std::option::Option<::std::string::String>,
2652    pub primitive: BoardFootprintPadBlockAttrsPrimitive,
2653}
2654///`BoardFootprintPadBlockAttrsHoleKind`
2655///
2656/// <details><summary>JSON schema</summary>
2657///
2658/// ```json
2659///{
2660///  "anyOf": [
2661///    {
2662///      "type": "string",
2663///      "const": "round"
2664///    },
2665///    {
2666///      "type": "string",
2667///      "const": "slot"
2668///    }
2669///  ]
2670///}
2671/// ```
2672/// </details>
2673#[derive(
2674    ::serde::Deserialize,
2675    ::serde::Serialize,
2676    Clone,
2677    Copy,
2678    Debug,
2679    Eq,
2680    Hash,
2681    Ord,
2682    PartialEq,
2683    PartialOrd,
2684)]
2685pub enum BoardFootprintPadBlockAttrsHoleKind {
2686    #[serde(rename = "round")]
2687    Round,
2688    #[serde(rename = "slot")]
2689    Slot,
2690}
2691impl ::std::fmt::Display for BoardFootprintPadBlockAttrsHoleKind {
2692    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2693        match *self {
2694            Self::Round => f.write_str("round"),
2695            Self::Slot => f.write_str("slot"),
2696        }
2697    }
2698}
2699impl ::std::str::FromStr for BoardFootprintPadBlockAttrsHoleKind {
2700    type Err = self::error::ConversionError;
2701    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2702        match value {
2703            "round" => Ok(Self::Round),
2704            "slot" => Ok(Self::Slot),
2705            _ => Err("invalid value".into()),
2706        }
2707    }
2708}
2709impl ::std::convert::TryFrom<&str> for BoardFootprintPadBlockAttrsHoleKind {
2710    type Error = self::error::ConversionError;
2711    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2712        value.parse()
2713    }
2714}
2715impl ::std::convert::TryFrom<&::std::string::String> for BoardFootprintPadBlockAttrsHoleKind {
2716    type Error = self::error::ConversionError;
2717    fn try_from(
2718        value: &::std::string::String,
2719    ) -> ::std::result::Result<Self, self::error::ConversionError> {
2720        value.parse()
2721    }
2722}
2723impl ::std::convert::TryFrom<::std::string::String> for BoardFootprintPadBlockAttrsHoleKind {
2724    type Error = self::error::ConversionError;
2725    fn try_from(
2726        value: ::std::string::String,
2727    ) -> ::std::result::Result<Self, self::error::ConversionError> {
2728        value.parse()
2729    }
2730}
2731///`BoardFootprintPadBlockAttrsHolePlating`
2732///
2733/// <details><summary>JSON schema</summary>
2734///
2735/// ```json
2736///{
2737///  "anyOf": [
2738///    {
2739///      "type": "string",
2740///      "const": "plated"
2741///    },
2742///    {
2743///      "type": "string",
2744///      "const": "non_plated"
2745///    }
2746///  ]
2747///}
2748/// ```
2749/// </details>
2750#[derive(
2751    ::serde::Deserialize,
2752    ::serde::Serialize,
2753    Clone,
2754    Copy,
2755    Debug,
2756    Eq,
2757    Hash,
2758    Ord,
2759    PartialEq,
2760    PartialOrd,
2761)]
2762pub enum BoardFootprintPadBlockAttrsHolePlating {
2763    #[serde(rename = "plated")]
2764    Plated,
2765    #[serde(rename = "non_plated")]
2766    NonPlated,
2767}
2768impl ::std::fmt::Display for BoardFootprintPadBlockAttrsHolePlating {
2769    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2770        match *self {
2771            Self::Plated => f.write_str("plated"),
2772            Self::NonPlated => f.write_str("non_plated"),
2773        }
2774    }
2775}
2776impl ::std::str::FromStr for BoardFootprintPadBlockAttrsHolePlating {
2777    type Err = self::error::ConversionError;
2778    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2779        match value {
2780            "plated" => Ok(Self::Plated),
2781            "non_plated" => Ok(Self::NonPlated),
2782            _ => Err("invalid value".into()),
2783        }
2784    }
2785}
2786impl ::std::convert::TryFrom<&str> for BoardFootprintPadBlockAttrsHolePlating {
2787    type Error = self::error::ConversionError;
2788    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2789        value.parse()
2790    }
2791}
2792impl ::std::convert::TryFrom<&::std::string::String> for BoardFootprintPadBlockAttrsHolePlating {
2793    type Error = self::error::ConversionError;
2794    fn try_from(
2795        value: &::std::string::String,
2796    ) -> ::std::result::Result<Self, self::error::ConversionError> {
2797        value.parse()
2798    }
2799}
2800impl ::std::convert::TryFrom<::std::string::String> for BoardFootprintPadBlockAttrsHolePlating {
2801    type Error = self::error::ConversionError;
2802    fn try_from(
2803        value: ::std::string::String,
2804    ) -> ::std::result::Result<Self, self::error::ConversionError> {
2805        value.parse()
2806    }
2807}
2808///`BoardFootprintPadBlockAttrsPrimitive`
2809///
2810/// <details><summary>JSON schema</summary>
2811///
2812/// ```json
2813///{
2814///  "anyOf": [
2815///    {
2816///      "type": "string",
2817///      "const": "pad"
2818///    },
2819///    {
2820///      "type": "string",
2821///      "const": "pad-hole"
2822///    }
2823///  ]
2824///}
2825/// ```
2826/// </details>
2827#[derive(
2828    ::serde::Deserialize,
2829    ::serde::Serialize,
2830    Clone,
2831    Copy,
2832    Debug,
2833    Eq,
2834    Hash,
2835    Ord,
2836    PartialEq,
2837    PartialOrd,
2838)]
2839pub enum BoardFootprintPadBlockAttrsPrimitive {
2840    #[serde(rename = "pad")]
2841    Pad,
2842    #[serde(rename = "pad-hole")]
2843    PadHole,
2844}
2845impl ::std::fmt::Display for BoardFootprintPadBlockAttrsPrimitive {
2846    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2847        match *self {
2848            Self::Pad => f.write_str("pad"),
2849            Self::PadHole => f.write_str("pad-hole"),
2850        }
2851    }
2852}
2853impl ::std::str::FromStr for BoardFootprintPadBlockAttrsPrimitive {
2854    type Err = self::error::ConversionError;
2855    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2856        match value {
2857            "pad" => Ok(Self::Pad),
2858            "pad-hole" => Ok(Self::PadHole),
2859            _ => Err("invalid value".into()),
2860        }
2861    }
2862}
2863impl ::std::convert::TryFrom<&str> for BoardFootprintPadBlockAttrsPrimitive {
2864    type Error = self::error::ConversionError;
2865    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2866        value.parse()
2867    }
2868}
2869impl ::std::convert::TryFrom<&::std::string::String> for BoardFootprintPadBlockAttrsPrimitive {
2870    type Error = self::error::ConversionError;
2871    fn try_from(
2872        value: &::std::string::String,
2873    ) -> ::std::result::Result<Self, self::error::ConversionError> {
2874        value.parse()
2875    }
2876}
2877impl ::std::convert::TryFrom<::std::string::String> for BoardFootprintPadBlockAttrsPrimitive {
2878    type Error = self::error::ConversionError;
2879    fn try_from(
2880        value: ::std::string::String,
2881    ) -> ::std::result::Result<Self, self::error::ConversionError> {
2882        value.parse()
2883    }
2884}
2885///Footprint-local placement applied by board renderers.
2886///
2887/// <details><summary>JSON schema</summary>
2888///
2889/// ```json
2890///{
2891///  "description": "Footprint-local placement applied by board renderers.",
2892///  "type": "object",
2893///  "required": [
2894///    "angle_deg",
2895///    "x_nm",
2896///    "y_nm"
2897///  ],
2898///  "properties": {
2899///    "angle_deg": {
2900///      "type": "number"
2901///    },
2902///    "x_nm": {
2903///      "$ref": "#/$defs/JavaScriptSafeInteger"
2904///    },
2905///    "y_nm": {
2906///      "$ref": "#/$defs/JavaScriptSafeInteger"
2907///    }
2908///  },
2909///  "additionalProperties": false
2910///}
2911/// ```
2912/// </details>
2913#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2914#[serde(deny_unknown_fields)]
2915pub struct BoardFootprintPlacement {
2916    pub angle_deg: f64,
2917    pub x_nm: crate::JavaScriptSafeInteger,
2918    pub y_nm: crate::JavaScriptSafeInteger,
2919}
2920///`BoardFootprintPlotPolyOperation`
2921///
2922/// <details><summary>JSON schema</summary>
2923///
2924/// ```json
2925///{
2926///  "type": "object",
2927///  "required": [
2928///    "fill",
2929///    "index",
2930///    "kind",
2931///    "points",
2932///    "width_nm"
2933///  ],
2934///  "properties": {
2935///    "data_ref": {
2936///      "$ref": "#/$defs/BoardFootprintChildRef"
2937///    },
2938///    "data_uuid": {
2939///      "type": "string"
2940///    },
2941///    "extra_attrs": {
2942///      "$ref": "#/$defs/BoardFootprintChildAttrs"
2943///    },
2944///    "fill": {
2945///      "$ref": "#/$defs/PlotterFill"
2946///    },
2947///    "fill_color": {
2948///      "type": "string"
2949///    },
2950///    "index": {
2951///      "type": "integer",
2952///      "maximum": 4294967295.0,
2953///      "minimum": 0.0
2954///    },
2955///    "kind": {
2956///      "type": "string",
2957///      "const": "PlotPoly"
2958///    },
2959///    "label": {
2960///      "type": "string"
2961///    },
2962///    "layer": {
2963///      "type": "string"
2964///    },
2965///    "line_style": {
2966///      "$ref": "#/$defs/PlotterLineStyle"
2967///    },
2968///    "object_id": {
2969///      "type": "string"
2970///    },
2971///    "points": {
2972///      "type": "array",
2973///      "items": {
2974///        "$ref": "#/$defs/PlotterPoint"
2975///      }
2976///    },
2977///    "stroke_color": {
2978///      "type": "string"
2979///    },
2980///    "width_nm": {
2981///      "$ref": "#/$defs/JavaScriptSafeInteger"
2982///    }
2983///  },
2984///  "additionalProperties": false
2985///}
2986/// ```
2987/// </details>
2988#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2989#[serde(deny_unknown_fields)]
2990pub struct BoardFootprintPlotPolyOperation {
2991    #[serde(
2992        default,
2993        deserialize_with = "crate::deserialize_present_nonnull",
2994        skip_serializing_if = "::std::option::Option::is_none"
2995    )]
2996    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
2997    #[serde(
2998        default,
2999        deserialize_with = "crate::deserialize_present_nonnull",
3000        skip_serializing_if = "::std::option::Option::is_none"
3001    )]
3002    pub data_uuid: ::std::option::Option<::std::string::String>,
3003    #[serde(
3004        default,
3005        deserialize_with = "crate::deserialize_present_nonnull",
3006        skip_serializing_if = "::std::option::Option::is_none"
3007    )]
3008    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
3009    pub fill: PlotterFill,
3010    #[serde(
3011        default,
3012        deserialize_with = "crate::deserialize_present_nonnull",
3013        skip_serializing_if = "::std::option::Option::is_none"
3014    )]
3015    pub fill_color: ::std::option::Option<::std::string::String>,
3016    pub index: u32,
3017    #[serde(deserialize_with = "crate::deserialize_plot_poly_kind")]
3018    pub kind: ::std::string::String,
3019    #[serde(
3020        default,
3021        deserialize_with = "crate::deserialize_present_nonnull",
3022        skip_serializing_if = "::std::option::Option::is_none"
3023    )]
3024    pub label: ::std::option::Option<::std::string::String>,
3025    #[serde(
3026        default,
3027        deserialize_with = "crate::deserialize_present_nonnull",
3028        skip_serializing_if = "::std::option::Option::is_none"
3029    )]
3030    pub layer: ::std::option::Option<::std::string::String>,
3031    #[serde(
3032        default,
3033        deserialize_with = "crate::deserialize_present_nonnull",
3034        skip_serializing_if = "::std::option::Option::is_none"
3035    )]
3036    pub line_style: ::std::option::Option<PlotterLineStyle>,
3037    #[serde(
3038        default,
3039        deserialize_with = "crate::deserialize_present_nonnull",
3040        skip_serializing_if = "::std::option::Option::is_none"
3041    )]
3042    pub object_id: ::std::option::Option<::std::string::String>,
3043    pub points: ::std::vec::Vec<PlotterPoint>,
3044    #[serde(
3045        default,
3046        deserialize_with = "crate::deserialize_present_nonnull",
3047        skip_serializing_if = "::std::option::Option::is_none"
3048    )]
3049    pub stroke_color: ::std::option::Option<::std::string::String>,
3050    pub width_nm: crate::JavaScriptSafeInteger,
3051}
3052///One board-embedded footprint in canonical child and pad-block order.
3053///
3054/// <details><summary>JSON schema</summary>
3055///
3056/// ```json
3057///{
3058///  "description": "One board-embedded footprint in canonical child and pad-block order.",
3059///  "type": "object",
3060///  "required": [
3061///    "attr",
3062///    "descr",
3063///    "kind",
3064///    "layer",
3065///    "library_link",
3066///    "locked",
3067///    "object_id",
3068///    "operation_count",
3069///    "operations",
3070///    "placement",
3071///    "reference",
3072///    "tags",
3073///    "uuid",
3074///    "value"
3075///  ],
3076///  "properties": {
3077///    "attr": {
3078///      "type": "array",
3079///      "items": {
3080///        "type": "string"
3081///      }
3082///    },
3083///    "descr": {
3084///      "type": "string"
3085///    },
3086///    "kind": {
3087///      "type": "string",
3088///      "const": "footprint"
3089///    },
3090///    "layer": {
3091///      "type": "string"
3092///    },
3093///    "library_link": {
3094///      "type": "string"
3095///    },
3096///    "locked": {
3097///      "type": "boolean"
3098///    },
3099///    "object_id": {
3100///      "type": "string"
3101///    },
3102///    "operation_count": {
3103///      "type": "integer",
3104///      "maximum": 4294967295.0,
3105///      "minimum": 0.0
3106///    },
3107///    "operations": {
3108///      "type": "array",
3109///      "items": {
3110///        "$ref": "#/$defs/BoardFootprintOperation"
3111///      }
3112///    },
3113///    "placement": {
3114///      "$ref": "#/$defs/BoardFootprintPlacement"
3115///    },
3116///    "reference": {
3117///      "type": "string"
3118///    },
3119///    "tags": {
3120///      "type": "string"
3121///    },
3122///    "uuid": {
3123///      "type": "string"
3124///    },
3125///    "value": {
3126///      "type": "string"
3127///    }
3128///  },
3129///  "additionalProperties": false
3130///}
3131/// ```
3132/// </details>
3133#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
3134#[serde(deny_unknown_fields)]
3135pub struct BoardFootprintPlotRecord {
3136    pub attr: ::std::vec::Vec<::std::string::String>,
3137    pub descr: ::std::string::String,
3138    pub kind: ::std::string::String,
3139    pub layer: ::std::string::String,
3140    pub library_link: ::std::string::String,
3141    pub locked: bool,
3142    pub object_id: ::std::string::String,
3143    pub operation_count: u32,
3144    pub operations: ::std::vec::Vec<BoardFootprintOperation>,
3145    pub placement: BoardFootprintPlacement,
3146    pub reference: ::std::string::String,
3147    pub tags: ::std::string::String,
3148    pub uuid: ::std::string::String,
3149    pub value: ::std::string::String,
3150}
3151///`BoardFootprintRectOperation`
3152///
3153/// <details><summary>JSON schema</summary>
3154///
3155/// ```json
3156///{
3157///  "type": "object",
3158///  "required": [
3159///    "corner_radius_nm",
3160///    "fill",
3161///    "index",
3162///    "kind",
3163///    "width_nm",
3164///    "x1",
3165///    "x2",
3166///    "y1",
3167///    "y2"
3168///  ],
3169///  "properties": {
3170///    "corner_radius_nm": {
3171///      "$ref": "#/$defs/JavaScriptSafeInteger"
3172///    },
3173///    "data_ref": {
3174///      "$ref": "#/$defs/BoardFootprintChildRef"
3175///    },
3176///    "data_uuid": {
3177///      "type": "string"
3178///    },
3179///    "extra_attrs": {
3180///      "$ref": "#/$defs/BoardFootprintChildAttrs"
3181///    },
3182///    "fill": {
3183///      "$ref": "#/$defs/PlotterFill"
3184///    },
3185///    "fill_color": {
3186///      "type": "string"
3187///    },
3188///    "index": {
3189///      "type": "integer",
3190///      "maximum": 4294967295.0,
3191///      "minimum": 0.0
3192///    },
3193///    "kind": {
3194///      "type": "string",
3195///      "const": "Rect"
3196///    },
3197///    "label": {
3198///      "type": "string"
3199///    },
3200///    "layer": {
3201///      "type": "string"
3202///    },
3203///    "line_style": {
3204///      "$ref": "#/$defs/PlotterLineStyle"
3205///    },
3206///    "object_id": {
3207///      "type": "string"
3208///    },
3209///    "stroke_color": {
3210///      "type": "string"
3211///    },
3212///    "width_nm": {
3213///      "$ref": "#/$defs/JavaScriptSafeInteger"
3214///    },
3215///    "x1": {
3216///      "$ref": "#/$defs/JavaScriptSafeInteger"
3217///    },
3218///    "x2": {
3219///      "$ref": "#/$defs/JavaScriptSafeInteger"
3220///    },
3221///    "y1": {
3222///      "$ref": "#/$defs/JavaScriptSafeInteger"
3223///    },
3224///    "y2": {
3225///      "$ref": "#/$defs/JavaScriptSafeInteger"
3226///    }
3227///  },
3228///  "additionalProperties": false
3229///}
3230/// ```
3231/// </details>
3232#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
3233#[serde(deny_unknown_fields)]
3234pub struct BoardFootprintRectOperation {
3235    pub corner_radius_nm: crate::JavaScriptSafeInteger,
3236    #[serde(
3237        default,
3238        deserialize_with = "crate::deserialize_present_nonnull",
3239        skip_serializing_if = "::std::option::Option::is_none"
3240    )]
3241    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
3242    #[serde(
3243        default,
3244        deserialize_with = "crate::deserialize_present_nonnull",
3245        skip_serializing_if = "::std::option::Option::is_none"
3246    )]
3247    pub data_uuid: ::std::option::Option<::std::string::String>,
3248    #[serde(
3249        default,
3250        deserialize_with = "crate::deserialize_present_nonnull",
3251        skip_serializing_if = "::std::option::Option::is_none"
3252    )]
3253    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
3254    pub fill: PlotterFill,
3255    #[serde(
3256        default,
3257        deserialize_with = "crate::deserialize_present_nonnull",
3258        skip_serializing_if = "::std::option::Option::is_none"
3259    )]
3260    pub fill_color: ::std::option::Option<::std::string::String>,
3261    pub index: u32,
3262    #[serde(deserialize_with = "crate::deserialize_rect_kind")]
3263    pub kind: ::std::string::String,
3264    #[serde(
3265        default,
3266        deserialize_with = "crate::deserialize_present_nonnull",
3267        skip_serializing_if = "::std::option::Option::is_none"
3268    )]
3269    pub label: ::std::option::Option<::std::string::String>,
3270    #[serde(
3271        default,
3272        deserialize_with = "crate::deserialize_present_nonnull",
3273        skip_serializing_if = "::std::option::Option::is_none"
3274    )]
3275    pub layer: ::std::option::Option<::std::string::String>,
3276    #[serde(
3277        default,
3278        deserialize_with = "crate::deserialize_present_nonnull",
3279        skip_serializing_if = "::std::option::Option::is_none"
3280    )]
3281    pub line_style: ::std::option::Option<PlotterLineStyle>,
3282    #[serde(
3283        default,
3284        deserialize_with = "crate::deserialize_present_nonnull",
3285        skip_serializing_if = "::std::option::Option::is_none"
3286    )]
3287    pub object_id: ::std::option::Option<::std::string::String>,
3288    #[serde(
3289        default,
3290        deserialize_with = "crate::deserialize_present_nonnull",
3291        skip_serializing_if = "::std::option::Option::is_none"
3292    )]
3293    pub stroke_color: ::std::option::Option<::std::string::String>,
3294    pub width_nm: crate::JavaScriptSafeInteger,
3295    pub x1: crate::JavaScriptSafeInteger,
3296    pub x2: crate::JavaScriptSafeInteger,
3297    pub y1: crate::JavaScriptSafeInteger,
3298    pub y2: crate::JavaScriptSafeInteger,
3299}
3300///Opening operation for one embedded pad or drill SVG group.
3301///
3302/// <details><summary>JSON schema</summary>
3303///
3304/// ```json
3305///{
3306///  "description": "Opening operation for one embedded pad or drill SVG group.",
3307///  "type": "object",
3308///  "required": [
3309///    "data_ref",
3310///    "data_uuid",
3311///    "extra_attrs",
3312///    "index",
3313///    "kind",
3314///    "label",
3315///    "object_id"
3316///  ],
3317///  "properties": {
3318///    "data_ref": {
3319///      "anyOf": [
3320///        {
3321///          "type": "string",
3322///          "const": "pad"
3323///        },
3324///        {
3325///          "type": "string",
3326///          "const": "pad_hole"
3327///        }
3328///      ]
3329///    },
3330///    "data_uuid": {
3331///      "type": "string"
3332///    },
3333///    "extra_attrs": {
3334///      "$ref": "#/$defs/BoardFootprintPadBlockAttrs"
3335///    },
3336///    "index": {
3337///      "type": "integer",
3338///      "maximum": 4294967295.0,
3339///      "minimum": 0.0
3340///    },
3341///    "kind": {
3342///      "type": "string",
3343///      "const": "StartBlock"
3344///    },
3345///    "label": {
3346///      "type": "string"
3347///    },
3348///    "layers": {
3349///      "type": "array",
3350///      "items": {
3351///        "type": "string"
3352///      }
3353///    },
3354///    "object_id": {
3355///      "type": "string"
3356///    }
3357///  },
3358///  "additionalProperties": false
3359///}
3360/// ```
3361/// </details>
3362#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
3363#[serde(deny_unknown_fields)]
3364pub struct BoardFootprintStartBlockOperation {
3365    pub data_ref: BoardFootprintStartBlockOperationDataRef,
3366    pub data_uuid: ::std::string::String,
3367    pub extra_attrs: BoardFootprintPadBlockAttrs,
3368    pub index: u32,
3369    #[serde(deserialize_with = "crate::deserialize_start_block_kind")]
3370    pub kind: ::std::string::String,
3371    pub label: ::std::string::String,
3372    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
3373    pub layers: ::std::vec::Vec<::std::string::String>,
3374    pub object_id: ::std::string::String,
3375}
3376///`BoardFootprintStartBlockOperationDataRef`
3377///
3378/// <details><summary>JSON schema</summary>
3379///
3380/// ```json
3381///{
3382///  "anyOf": [
3383///    {
3384///      "type": "string",
3385///      "const": "pad"
3386///    },
3387///    {
3388///      "type": "string",
3389///      "const": "pad_hole"
3390///    }
3391///  ]
3392///}
3393/// ```
3394/// </details>
3395#[derive(
3396    ::serde::Deserialize,
3397    ::serde::Serialize,
3398    Clone,
3399    Copy,
3400    Debug,
3401    Eq,
3402    Hash,
3403    Ord,
3404    PartialEq,
3405    PartialOrd,
3406)]
3407pub enum BoardFootprintStartBlockOperationDataRef {
3408    #[serde(rename = "pad")]
3409    Pad,
3410    #[serde(rename = "pad_hole")]
3411    PadHole,
3412}
3413impl ::std::fmt::Display for BoardFootprintStartBlockOperationDataRef {
3414    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3415        match *self {
3416            Self::Pad => f.write_str("pad"),
3417            Self::PadHole => f.write_str("pad_hole"),
3418        }
3419    }
3420}
3421impl ::std::str::FromStr for BoardFootprintStartBlockOperationDataRef {
3422    type Err = self::error::ConversionError;
3423    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
3424        match value {
3425            "pad" => Ok(Self::Pad),
3426            "pad_hole" => Ok(Self::PadHole),
3427            _ => Err("invalid value".into()),
3428        }
3429    }
3430}
3431impl ::std::convert::TryFrom<&str> for BoardFootprintStartBlockOperationDataRef {
3432    type Error = self::error::ConversionError;
3433    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
3434        value.parse()
3435    }
3436}
3437impl ::std::convert::TryFrom<&::std::string::String> for BoardFootprintStartBlockOperationDataRef {
3438    type Error = self::error::ConversionError;
3439    fn try_from(
3440        value: &::std::string::String,
3441    ) -> ::std::result::Result<Self, self::error::ConversionError> {
3442        value.parse()
3443    }
3444}
3445impl ::std::convert::TryFrom<::std::string::String> for BoardFootprintStartBlockOperationDataRef {
3446    type Error = self::error::ConversionError;
3447    fn try_from(
3448        value: ::std::string::String,
3449    ) -> ::std::result::Result<Self, self::error::ConversionError> {
3450        value.parse()
3451    }
3452}
3453///`BoardFootprintTextOperation`
3454///
3455/// <details><summary>JSON schema</summary>
3456///
3457/// ```json
3458///{
3459///  "type": "object",
3460///  "required": [
3461///    "bold",
3462///    "color",
3463///    "font_face",
3464///    "h_align",
3465///    "index",
3466///    "italic",
3467///    "kind",
3468///    "multiline",
3469///    "orient_deg",
3470///    "pen_width_nm",
3471///    "size_x_nm",
3472///    "size_y_nm",
3473///    "text",
3474///    "v_align",
3475///    "x",
3476///    "y"
3477///  ],
3478///  "properties": {
3479///    "bold": {
3480///      "type": "boolean"
3481///    },
3482///    "color": {
3483///      "type": "string"
3484///    },
3485///    "context": {
3486///      "$ref": "#/$defs/PlotterOperationContext"
3487///    },
3488///    "data_ref": {
3489///      "$ref": "#/$defs/BoardFootprintChildRef"
3490///    },
3491///    "data_uuid": {
3492///      "type": "string"
3493///    },
3494///    "extra_attrs": {
3495///      "$ref": "#/$defs/BoardFootprintChildAttrs"
3496///    },
3497///    "font_face": {
3498///      "type": "string"
3499///    },
3500///    "h_align": {
3501///      "$ref": "#/$defs/PlotterTextHAlign"
3502///    },
3503///    "index": {
3504///      "type": "integer",
3505///      "maximum": 4294967295.0,
3506///      "minimum": 0.0
3507///    },
3508///    "italic": {
3509///      "type": "boolean"
3510///    },
3511///    "kind": {
3512///      "type": "string",
3513///      "const": "Text"
3514///    },
3515///    "knockout": {
3516///      "type": "boolean"
3517///    },
3518///    "label": {
3519///      "type": "string"
3520///    },
3521///    "layer": {
3522///      "type": "string"
3523///    },
3524///    "mirror": {
3525///      "type": "boolean"
3526///    },
3527///    "multiline": {
3528///      "type": "boolean"
3529///    },
3530///    "object_id": {
3531///      "type": "string"
3532///    },
3533///    "orient_deg": {
3534///      "type": "number"
3535///    },
3536///    "pen_width_nm": {
3537///      "$ref": "#/$defs/JavaScriptSafeInteger"
3538///    },
3539///    "polyline_per_segment": {
3540///      "type": "boolean"
3541///    },
3542///    "render_cache": {
3543///      "$ref": "#/$defs/TextRenderCache"
3544///    },
3545///    "render_cache_exact": {
3546///      "type": "boolean"
3547///    },
3548///    "render_cache_polygons": {
3549///      "type": "array",
3550///      "items": {
3551///        "type": "array",
3552///        "items": {
3553///          "$ref": "#/$defs/PlotterPoint"
3554///        }
3555///      }
3556///    },
3557///    "render_cache_source": {
3558///      "$ref": "#/$defs/PlotterTextRenderCacheSource"
3559///    },
3560///    "size_x_nm": {
3561///      "$ref": "#/$defs/JavaScriptSafeInteger"
3562///    },
3563///    "size_y_nm": {
3564///      "$ref": "#/$defs/JavaScriptSafeInteger"
3565///    },
3566///    "text": {
3567///      "type": "string"
3568///    },
3569///    "text_as_polygons": {
3570///      "type": "boolean"
3571///    },
3572///    "v_align": {
3573///      "$ref": "#/$defs/PlotterTextVAlign"
3574///    },
3575///    "x": {
3576///      "$ref": "#/$defs/JavaScriptSafeInteger"
3577///    },
3578///    "y": {
3579///      "$ref": "#/$defs/JavaScriptSafeInteger"
3580///    }
3581///  },
3582///  "additionalProperties": false
3583///}
3584/// ```
3585/// </details>
3586#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
3587#[serde(deny_unknown_fields)]
3588pub struct BoardFootprintTextOperation {
3589    pub bold: bool,
3590    pub color: ::std::string::String,
3591    #[serde(
3592        default,
3593        deserialize_with = "crate::deserialize_present_nonnull",
3594        skip_serializing_if = "::std::option::Option::is_none"
3595    )]
3596    pub context: ::std::option::Option<PlotterOperationContext>,
3597    #[serde(
3598        default,
3599        deserialize_with = "crate::deserialize_present_nonnull",
3600        skip_serializing_if = "::std::option::Option::is_none"
3601    )]
3602    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
3603    #[serde(
3604        default,
3605        deserialize_with = "crate::deserialize_present_nonnull",
3606        skip_serializing_if = "::std::option::Option::is_none"
3607    )]
3608    pub data_uuid: ::std::option::Option<::std::string::String>,
3609    #[serde(
3610        default,
3611        deserialize_with = "crate::deserialize_present_nonnull",
3612        skip_serializing_if = "::std::option::Option::is_none"
3613    )]
3614    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
3615    pub font_face: ::std::string::String,
3616    pub h_align: PlotterTextHAlign,
3617    pub index: u32,
3618    pub italic: bool,
3619    #[serde(deserialize_with = "crate::deserialize_text_kind")]
3620    pub kind: ::std::string::String,
3621    #[serde(
3622        default,
3623        deserialize_with = "crate::deserialize_present_nonnull",
3624        skip_serializing_if = "::std::option::Option::is_none"
3625    )]
3626    pub knockout: ::std::option::Option<bool>,
3627    #[serde(
3628        default,
3629        deserialize_with = "crate::deserialize_present_nonnull",
3630        skip_serializing_if = "::std::option::Option::is_none"
3631    )]
3632    pub label: ::std::option::Option<::std::string::String>,
3633    #[serde(
3634        default,
3635        deserialize_with = "crate::deserialize_present_nonnull",
3636        skip_serializing_if = "::std::option::Option::is_none"
3637    )]
3638    pub layer: ::std::option::Option<::std::string::String>,
3639    #[serde(
3640        default,
3641        deserialize_with = "crate::deserialize_present_nonnull",
3642        skip_serializing_if = "::std::option::Option::is_none"
3643    )]
3644    pub mirror: ::std::option::Option<bool>,
3645    pub multiline: bool,
3646    #[serde(
3647        default,
3648        deserialize_with = "crate::deserialize_present_nonnull",
3649        skip_serializing_if = "::std::option::Option::is_none"
3650    )]
3651    pub object_id: ::std::option::Option<::std::string::String>,
3652    pub orient_deg: f64,
3653    pub pen_width_nm: crate::JavaScriptSafeInteger,
3654    #[serde(
3655        default,
3656        deserialize_with = "crate::deserialize_present_nonnull",
3657        skip_serializing_if = "::std::option::Option::is_none"
3658    )]
3659    pub polyline_per_segment: ::std::option::Option<bool>,
3660    #[serde(
3661        default,
3662        deserialize_with = "crate::deserialize_present_nonnull",
3663        skip_serializing_if = "::std::option::Option::is_none"
3664    )]
3665    pub render_cache: ::std::option::Option<TextRenderCache>,
3666    #[serde(
3667        default,
3668        deserialize_with = "crate::deserialize_present_nonnull",
3669        skip_serializing_if = "::std::option::Option::is_none"
3670    )]
3671    pub render_cache_exact: ::std::option::Option<bool>,
3672    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
3673    pub render_cache_polygons: ::std::vec::Vec<::std::vec::Vec<PlotterPoint>>,
3674    #[serde(
3675        default,
3676        deserialize_with = "crate::deserialize_present_nonnull",
3677        skip_serializing_if = "::std::option::Option::is_none"
3678    )]
3679    pub render_cache_source: ::std::option::Option<PlotterTextRenderCacheSource>,
3680    pub size_x_nm: crate::JavaScriptSafeInteger,
3681    pub size_y_nm: crate::JavaScriptSafeInteger,
3682    pub text: ::std::string::String,
3683    #[serde(
3684        default,
3685        deserialize_with = "crate::deserialize_present_nonnull",
3686        skip_serializing_if = "::std::option::Option::is_none"
3687    )]
3688    pub text_as_polygons: ::std::option::Option<bool>,
3689    pub v_align: PlotterTextVAlign,
3690    pub x: crate::JavaScriptSafeInteger,
3691    pub y: crate::JavaScriptSafeInteger,
3692}
3693///`BoardFootprintThickSegmentOperation`
3694///
3695/// <details><summary>JSON schema</summary>
3696///
3697/// ```json
3698///{
3699///  "type": "object",
3700///  "required": [
3701///    "end_x",
3702///    "end_y",
3703///    "index",
3704///    "kind",
3705///    "start_x",
3706///    "start_y",
3707///    "width_nm"
3708///  ],
3709///  "properties": {
3710///    "data_ref": {
3711///      "$ref": "#/$defs/BoardFootprintChildRef"
3712///    },
3713///    "data_uuid": {
3714///      "type": "string"
3715///    },
3716///    "end_x": {
3717///      "$ref": "#/$defs/JavaScriptSafeInteger"
3718///    },
3719///    "end_y": {
3720///      "$ref": "#/$defs/JavaScriptSafeInteger"
3721///    },
3722///    "extra_attrs": {
3723///      "$ref": "#/$defs/BoardFootprintChildAttrs"
3724///    },
3725///    "index": {
3726///      "type": "integer",
3727///      "maximum": 4294967295.0,
3728///      "minimum": 0.0
3729///    },
3730///    "kind": {
3731///      "type": "string",
3732///      "const": "ThickSegment"
3733///    },
3734///    "label": {
3735///      "type": "string"
3736///    },
3737///    "layer": {
3738///      "type": "string"
3739///    },
3740///    "layers": {
3741///      "type": "array",
3742///      "items": {
3743///        "type": "string"
3744///      }
3745///    },
3746///    "mask_margin_nm": {
3747///      "$ref": "#/$defs/JavaScriptSafeInteger"
3748///    },
3749///    "object_id": {
3750///      "type": "string"
3751///    },
3752///    "pad_size_x_nm": {
3753///      "$ref": "#/$defs/JavaScriptSafeInteger"
3754///    },
3755///    "pad_size_y_nm": {
3756///      "$ref": "#/$defs/JavaScriptSafeInteger"
3757///    },
3758///    "role": {
3759///      "$ref": "#/$defs/PlotterDrillRole"
3760///    },
3761///    "start_x": {
3762///      "$ref": "#/$defs/JavaScriptSafeInteger"
3763///    },
3764///    "start_y": {
3765///      "$ref": "#/$defs/JavaScriptSafeInteger"
3766///    },
3767///    "stroke_color": {
3768///      "type": "string"
3769///    },
3770///    "width_nm": {
3771///      "$ref": "#/$defs/JavaScriptSafeInteger"
3772///    }
3773///  },
3774///  "additionalProperties": false
3775///}
3776/// ```
3777/// </details>
3778#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
3779#[serde(deny_unknown_fields)]
3780pub struct BoardFootprintThickSegmentOperation {
3781    #[serde(
3782        default,
3783        deserialize_with = "crate::deserialize_present_nonnull",
3784        skip_serializing_if = "::std::option::Option::is_none"
3785    )]
3786    pub data_ref: ::std::option::Option<BoardFootprintChildRef>,
3787    #[serde(
3788        default,
3789        deserialize_with = "crate::deserialize_present_nonnull",
3790        skip_serializing_if = "::std::option::Option::is_none"
3791    )]
3792    pub data_uuid: ::std::option::Option<::std::string::String>,
3793    pub end_x: crate::JavaScriptSafeInteger,
3794    pub end_y: crate::JavaScriptSafeInteger,
3795    #[serde(
3796        default,
3797        deserialize_with = "crate::deserialize_present_nonnull",
3798        skip_serializing_if = "::std::option::Option::is_none"
3799    )]
3800    pub extra_attrs: ::std::option::Option<BoardFootprintChildAttrs>,
3801    pub index: u32,
3802    #[serde(deserialize_with = "crate::deserialize_thick_segment_kind")]
3803    pub kind: ::std::string::String,
3804    #[serde(
3805        default,
3806        deserialize_with = "crate::deserialize_present_nonnull",
3807        skip_serializing_if = "::std::option::Option::is_none"
3808    )]
3809    pub label: ::std::option::Option<::std::string::String>,
3810    #[serde(
3811        default,
3812        deserialize_with = "crate::deserialize_present_nonnull",
3813        skip_serializing_if = "::std::option::Option::is_none"
3814    )]
3815    pub layer: ::std::option::Option<::std::string::String>,
3816    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
3817    pub layers: ::std::vec::Vec<::std::string::String>,
3818    #[serde(
3819        default,
3820        deserialize_with = "crate::deserialize_present_nonnull",
3821        skip_serializing_if = "::std::option::Option::is_none"
3822    )]
3823    pub mask_margin_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
3824    #[serde(
3825        default,
3826        deserialize_with = "crate::deserialize_present_nonnull",
3827        skip_serializing_if = "::std::option::Option::is_none"
3828    )]
3829    pub object_id: ::std::option::Option<::std::string::String>,
3830    #[serde(
3831        default,
3832        deserialize_with = "crate::deserialize_present_nonnull",
3833        skip_serializing_if = "::std::option::Option::is_none"
3834    )]
3835    pub pad_size_x_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
3836    #[serde(
3837        default,
3838        deserialize_with = "crate::deserialize_present_nonnull",
3839        skip_serializing_if = "::std::option::Option::is_none"
3840    )]
3841    pub pad_size_y_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
3842    #[serde(
3843        default,
3844        deserialize_with = "crate::deserialize_present_nonnull",
3845        skip_serializing_if = "::std::option::Option::is_none"
3846    )]
3847    pub role: ::std::option::Option<PlotterDrillRole>,
3848    pub start_x: crate::JavaScriptSafeInteger,
3849    pub start_y: crate::JavaScriptSafeInteger,
3850    #[serde(
3851        default,
3852        deserialize_with = "crate::deserialize_present_nonnull",
3853        skip_serializing_if = "::std::option::Option::is_none"
3854    )]
3855    pub stroke_color: ::std::option::Option<::std::string::String>,
3856    pub width_nm: crate::JavaScriptSafeInteger,
3857}
3858/**One board-level graphic record. The carrier layer travels on the record;
3859the contained operations are layerless graphic-state operations.*/
3860///
3861/// <details><summary>JSON schema</summary>
3862///
3863/// ```json
3864///{
3865///  "description": "One board-level graphic record. The carrier layer travels on the record;\nthe contained operations are layerless graphic-state operations.",
3866///  "type": "object",
3867///  "required": [
3868///    "kind",
3869///    "layer",
3870///    "object_id",
3871///    "operation_count",
3872///    "operations",
3873///    "uuid"
3874///  ],
3875///  "properties": {
3876///    "kind": {
3877///      "$ref": "#/$defs/BoardGraphicRecordKind"
3878///    },
3879///    "layer": {
3880///      "anyOf": [
3881///        {
3882///          "type": "string"
3883///        },
3884///        {
3885///          "type": "null"
3886///        }
3887///      ]
3888///    },
3889///    "object_id": {
3890///      "type": "string"
3891///    },
3892///    "operation_count": {
3893///      "type": "integer",
3894///      "maximum": 4294967295.0,
3895///      "minimum": 0.0
3896///    },
3897///    "operations": {
3898///      "type": "array",
3899///      "items": {
3900///        "$ref": "#/$defs/PlotterOperation"
3901///      }
3902///    },
3903///    "uuid": {
3904///      "type": "string"
3905///    }
3906///  },
3907///  "additionalProperties": false
3908///}
3909/// ```
3910/// </details>
3911#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
3912#[serde(deny_unknown_fields)]
3913pub struct BoardGraphicPlotRecord {
3914    pub kind: BoardGraphicRecordKind,
3915    #[serde(deserialize_with = "crate::deserialize_required_nullable")]
3916    pub layer: ::std::option::Option<::std::string::String>,
3917    pub object_id: ::std::string::String,
3918    pub operation_count: u32,
3919    pub operations: ::std::vec::Vec<PlotterOperation>,
3920    pub uuid: ::std::string::String,
3921}
3922///Board graphic record kinds promoted in the first board slice.
3923///
3924/// <details><summary>JSON schema</summary>
3925///
3926/// ```json
3927///{
3928///  "description": "Board graphic record kinds promoted in the first board slice.",
3929///  "type": "string",
3930///  "enum": [
3931///    "gr_line",
3932///    "gr_arc",
3933///    "gr_circle",
3934///    "gr_rect",
3935///    "gr_poly",
3936///    "gr_curve"
3937///  ]
3938///}
3939/// ```
3940/// </details>
3941#[derive(
3942    ::serde::Deserialize,
3943    ::serde::Serialize,
3944    Clone,
3945    Copy,
3946    Debug,
3947    Eq,
3948    Hash,
3949    Ord,
3950    PartialEq,
3951    PartialOrd,
3952)]
3953pub enum BoardGraphicRecordKind {
3954    #[serde(rename = "gr_line")]
3955    GrLine,
3956    #[serde(rename = "gr_arc")]
3957    GrArc,
3958    #[serde(rename = "gr_circle")]
3959    GrCircle,
3960    #[serde(rename = "gr_rect")]
3961    GrRect,
3962    #[serde(rename = "gr_poly")]
3963    GrPoly,
3964    #[serde(rename = "gr_curve")]
3965    GrCurve,
3966}
3967impl ::std::fmt::Display for BoardGraphicRecordKind {
3968    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3969        match *self {
3970            Self::GrLine => f.write_str("gr_line"),
3971            Self::GrArc => f.write_str("gr_arc"),
3972            Self::GrCircle => f.write_str("gr_circle"),
3973            Self::GrRect => f.write_str("gr_rect"),
3974            Self::GrPoly => f.write_str("gr_poly"),
3975            Self::GrCurve => f.write_str("gr_curve"),
3976        }
3977    }
3978}
3979impl ::std::str::FromStr for BoardGraphicRecordKind {
3980    type Err = self::error::ConversionError;
3981    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
3982        match value {
3983            "gr_line" => Ok(Self::GrLine),
3984            "gr_arc" => Ok(Self::GrArc),
3985            "gr_circle" => Ok(Self::GrCircle),
3986            "gr_rect" => Ok(Self::GrRect),
3987            "gr_poly" => Ok(Self::GrPoly),
3988            "gr_curve" => Ok(Self::GrCurve),
3989            _ => Err("invalid value".into()),
3990        }
3991    }
3992}
3993impl ::std::convert::TryFrom<&str> for BoardGraphicRecordKind {
3994    type Error = self::error::ConversionError;
3995    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
3996        value.parse()
3997    }
3998}
3999impl ::std::convert::TryFrom<&::std::string::String> for BoardGraphicRecordKind {
4000    type Error = self::error::ConversionError;
4001    fn try_from(
4002        value: &::std::string::String,
4003    ) -> ::std::result::Result<Self, self::error::ConversionError> {
4004        value.parse()
4005    }
4006}
4007impl ::std::convert::TryFrom<::std::string::String> for BoardGraphicRecordKind {
4008    type Error = self::error::ConversionError;
4009    fn try_from(
4010        value: ::std::string::String,
4011    ) -> ::std::result::Result<Self, self::error::ConversionError> {
4012        value.parse()
4013    }
4014}
4015/**Strict board graphics, text, tracks, vias, tables, dimensions, authored
4016zone fills, and embedded footprints subset of kicad.plotter_ir.a0. Producers
4017and consumers must run generated semantic validation after structural decoding.*/
4018///
4019/// <details><summary>JSON schema</summary>
4020///
4021/// ```json
4022///{
4023///  "$id": "urn:wavenumber:schema:kicad_monkey.board_plot.document:a0",
4024///  "title": "Board plot document a0",
4025///  "description": "Strict board graphics, text, tracks, vias, tables, dimensions, authored\nzone fills, and embedded footprints subset of kicad.plotter_ir.a0. Producers\nand consumers must run generated semantic validation after structural decoding.",
4026///  "type": "object",
4027///  "required": [
4028///    "coordinate_space",
4029///    "document_id",
4030///    "generator",
4031///    "generator_version",
4032///    "paper",
4033///    "records",
4034///    "schema",
4035///    "source_kind",
4036///    "thickness_mm",
4037///    "total_operations",
4038///    "version"
4039///  ],
4040///  "properties": {
4041///    "coordinate_space": {
4042///      "$ref": "#/$defs/PlotterCoordinateSpace"
4043///    },
4044///    "document_id": {
4045///      "type": "string"
4046///    },
4047///    "generator": {
4048///      "type": "string"
4049///    },
4050///    "generator_version": {
4051///      "type": "string"
4052///    },
4053///    "paper": {
4054///      "type": "string"
4055///    },
4056///    "records": {
4057///      "type": "array",
4058///      "items": {
4059///        "$ref": "#/$defs/BoardPlotRecord"
4060///      }
4061///    },
4062///    "schema": {
4063///      "type": "string",
4064///      "const": "kicad.plotter_ir.a0"
4065///    },
4066///    "source_kind": {
4067///      "type": "string",
4068///      "const": "PCB"
4069///    },
4070///    "source_path": {
4071///      "type": "string"
4072///    },
4073///    "thickness_mm": {
4074///      "type": "number"
4075///    },
4076///    "total_operations": {
4077///      "type": "integer",
4078///      "maximum": 4294967295.0,
4079///      "minimum": 0.0
4080///    },
4081///    "version": {
4082///      "$ref": "#/$defs/JavaScriptSafeInteger"
4083///    }
4084///  },
4085///  "additionalProperties": false
4086///}
4087/// ```
4088/// </details>
4089#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
4090#[serde(deny_unknown_fields)]
4091pub struct BoardPlotDocumentA0 {
4092    pub coordinate_space: PlotterCoordinateSpace,
4093    pub document_id: ::std::string::String,
4094    pub generator: ::std::string::String,
4095    pub generator_version: ::std::string::String,
4096    pub paper: ::std::string::String,
4097    pub records: ::std::vec::Vec<BoardPlotRecord>,
4098    pub schema: ::std::string::String,
4099    pub source_kind: ::std::string::String,
4100    #[serde(
4101        default,
4102        deserialize_with = "crate::deserialize_present_nonnull",
4103        skip_serializing_if = "::std::option::Option::is_none"
4104    )]
4105    pub source_path: ::std::option::Option<::std::string::String>,
4106    pub thickness_mm: f64,
4107    pub total_operations: u32,
4108    pub version: crate::JavaScriptSafeInteger,
4109}
4110///`BoardPlotRecord`
4111///
4112/// <details><summary>JSON schema</summary>
4113///
4114/// ```json
4115///{
4116///  "oneOf": [
4117///    {
4118///      "$ref": "#/$defs/BoardGraphicPlotRecord"
4119///    },
4120///    {
4121///      "$ref": "#/$defs/TrackSegmentPlotRecord"
4122///    },
4123///    {
4124///      "$ref": "#/$defs/TrackArcPlotRecord"
4125///    },
4126///    {
4127///      "$ref": "#/$defs/ViaPlotRecord"
4128///    },
4129///    {
4130///      "$ref": "#/$defs/TablePlotRecord"
4131///    },
4132///    {
4133///      "$ref": "#/$defs/DimensionPlotRecord"
4134///    },
4135///    {
4136///      "$ref": "#/$defs/ZoneFillPlotRecord"
4137///    },
4138///    {
4139///      "$ref": "#/$defs/BoardTextPlotRecord"
4140///    },
4141///    {
4142///      "$ref": "#/$defs/BoardTextBoxPlotRecord"
4143///    },
4144///    {
4145///      "$ref": "#/$defs/BoardFootprintPlotRecord"
4146///    }
4147///  ]
4148///}
4149/// ```
4150/// </details>
4151#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
4152#[serde(untagged)]
4153pub enum BoardPlotRecord {
4154    BoardGraphicPlotRecord(BoardGraphicPlotRecord),
4155    TrackSegmentPlotRecord(TrackSegmentPlotRecord),
4156    TrackArcPlotRecord(TrackArcPlotRecord),
4157    ViaPlotRecord(ViaPlotRecord),
4158    TablePlotRecord(TablePlotRecord),
4159    DimensionPlotRecord(DimensionPlotRecord),
4160    ZoneFillPlotRecord(ZoneFillPlotRecord),
4161    BoardTextPlotRecord(BoardTextPlotRecord),
4162    BoardTextBoxPlotRecord(BoardTextBoxPlotRecord),
4163    BoardFootprintPlotRecord(BoardFootprintPlotRecord),
4164}
4165impl ::std::convert::From<BoardGraphicPlotRecord> for BoardPlotRecord {
4166    fn from(value: BoardGraphicPlotRecord) -> Self {
4167        Self::BoardGraphicPlotRecord(value)
4168    }
4169}
4170impl ::std::convert::From<TrackSegmentPlotRecord> for BoardPlotRecord {
4171    fn from(value: TrackSegmentPlotRecord) -> Self {
4172        Self::TrackSegmentPlotRecord(value)
4173    }
4174}
4175impl ::std::convert::From<TrackArcPlotRecord> for BoardPlotRecord {
4176    fn from(value: TrackArcPlotRecord) -> Self {
4177        Self::TrackArcPlotRecord(value)
4178    }
4179}
4180impl ::std::convert::From<ViaPlotRecord> for BoardPlotRecord {
4181    fn from(value: ViaPlotRecord) -> Self {
4182        Self::ViaPlotRecord(value)
4183    }
4184}
4185impl ::std::convert::From<TablePlotRecord> for BoardPlotRecord {
4186    fn from(value: TablePlotRecord) -> Self {
4187        Self::TablePlotRecord(value)
4188    }
4189}
4190impl ::std::convert::From<DimensionPlotRecord> for BoardPlotRecord {
4191    fn from(value: DimensionPlotRecord) -> Self {
4192        Self::DimensionPlotRecord(value)
4193    }
4194}
4195impl ::std::convert::From<ZoneFillPlotRecord> for BoardPlotRecord {
4196    fn from(value: ZoneFillPlotRecord) -> Self {
4197        Self::ZoneFillPlotRecord(value)
4198    }
4199}
4200impl ::std::convert::From<BoardTextPlotRecord> for BoardPlotRecord {
4201    fn from(value: BoardTextPlotRecord) -> Self {
4202        Self::BoardTextPlotRecord(value)
4203    }
4204}
4205impl ::std::convert::From<BoardTextBoxPlotRecord> for BoardPlotRecord {
4206    fn from(value: BoardTextBoxPlotRecord) -> Self {
4207        Self::BoardTextBoxPlotRecord(value)
4208    }
4209}
4210impl ::std::convert::From<BoardFootprintPlotRecord> for BoardPlotRecord {
4211    fn from(value: BoardFootprintPlotRecord) -> Self {
4212        Self::BoardFootprintPlotRecord(value)
4213    }
4214}
4215/**One board text-box record. A visible border contributes a leading Rect
4216operation; empty resolved text drops the Text operation.*/
4217///
4218/// <details><summary>JSON schema</summary>
4219///
4220/// ```json
4221///{
4222///  "description": "One board text-box record. A visible border contributes a leading Rect\noperation; empty resolved text drops the Text operation.",
4223///  "type": "object",
4224///  "required": [
4225///    "border",
4226///    "kind",
4227///    "layer",
4228///    "object_id",
4229///    "operation_count",
4230///    "operations",
4231///    "text",
4232///    "uuid"
4233///  ],
4234///  "properties": {
4235///    "border": {
4236///      "type": "boolean"
4237///    },
4238///    "kind": {
4239///      "type": "string",
4240///      "const": "gr_text_box"
4241///    },
4242///    "layer": {
4243///      "type": "string"
4244///    },
4245///    "object_id": {
4246///      "type": "string"
4247///    },
4248///    "operation_count": {
4249///      "type": "integer",
4250///      "maximum": 4294967295.0,
4251///      "minimum": 0.0
4252///    },
4253///    "operations": {
4254///      "type": "array",
4255///      "items": {
4256///        "$ref": "#/$defs/PlotterOperation"
4257///      }
4258///    },
4259///    "text": {
4260///      "type": "string"
4261///    },
4262///    "uuid": {
4263///      "type": "string"
4264///    }
4265///  },
4266///  "additionalProperties": false
4267///}
4268/// ```
4269/// </details>
4270#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
4271#[serde(deny_unknown_fields)]
4272pub struct BoardTextBoxPlotRecord {
4273    pub border: bool,
4274    pub kind: ::std::string::String,
4275    pub layer: ::std::string::String,
4276    pub object_id: ::std::string::String,
4277    pub operation_count: u32,
4278    pub operations: ::std::vec::Vec<PlotterOperation>,
4279    pub text: ::std::string::String,
4280    pub uuid: ::std::string::String,
4281}
4282/**One board free-text record. `hide` mirrors the established serializer's
4283getattr default and is always false for board gr_text carriers.*/
4284///
4285/// <details><summary>JSON schema</summary>
4286///
4287/// ```json
4288///{
4289///  "description": "One board free-text record. `hide` mirrors the established serializer's\ngetattr default and is always false for board gr_text carriers.",
4290///  "type": "object",
4291///  "required": [
4292///    "hide",
4293///    "kind",
4294///    "layer",
4295///    "object_id",
4296///    "operation_count",
4297///    "operations",
4298///    "text",
4299///    "uuid"
4300///  ],
4301///  "properties": {
4302///    "hide": {
4303///      "type": "boolean"
4304///    },
4305///    "kind": {
4306///      "type": "string",
4307///      "const": "gr_text"
4308///    },
4309///    "layer": {
4310///      "type": "string"
4311///    },
4312///    "object_id": {
4313///      "type": "string"
4314///    },
4315///    "operation_count": {
4316///      "type": "integer",
4317///      "maximum": 4294967295.0,
4318///      "minimum": 0.0
4319///    },
4320///    "operations": {
4321///      "type": "array",
4322///      "items": {
4323///        "$ref": "#/$defs/PlotterOperation"
4324///      }
4325///    },
4326///    "text": {
4327///      "type": "string"
4328///    },
4329///    "uuid": {
4330///      "type": "string"
4331///    }
4332///  },
4333///  "additionalProperties": false
4334///}
4335/// ```
4336/// </details>
4337#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
4338#[serde(deny_unknown_fields)]
4339pub struct BoardTextPlotRecord {
4340    pub hide: bool,
4341    pub kind: ::std::string::String,
4342    pub layer: ::std::string::String,
4343    pub object_id: ::std::string::String,
4344    pub operation_count: u32,
4345    pub operations: ::std::vec::Vec<PlotterOperation>,
4346    pub text: ::std::string::String,
4347    pub uuid: ::std::string::String,
4348}
4349///Via construction kinds mirrored from the established producer.
4350///
4351/// <details><summary>JSON schema</summary>
4352///
4353/// ```json
4354///{
4355///  "description": "Via construction kinds mirrored from the established producer.",
4356///  "type": "string",
4357///  "enum": [
4358///    "through",
4359///    "blind",
4360///    "buried",
4361///    "micro"
4362///  ]
4363///}
4364/// ```
4365/// </details>
4366#[derive(
4367    ::serde::Deserialize,
4368    ::serde::Serialize,
4369    Clone,
4370    Copy,
4371    Debug,
4372    Eq,
4373    Hash,
4374    Ord,
4375    PartialEq,
4376    PartialOrd,
4377)]
4378pub enum BoardViaType {
4379    #[serde(rename = "through")]
4380    Through,
4381    #[serde(rename = "blind")]
4382    Blind,
4383    #[serde(rename = "buried")]
4384    Buried,
4385    #[serde(rename = "micro")]
4386    Micro,
4387}
4388impl ::std::fmt::Display for BoardViaType {
4389    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
4390        match *self {
4391            Self::Through => f.write_str("through"),
4392            Self::Blind => f.write_str("blind"),
4393            Self::Buried => f.write_str("buried"),
4394            Self::Micro => f.write_str("micro"),
4395        }
4396    }
4397}
4398impl ::std::str::FromStr for BoardViaType {
4399    type Err = self::error::ConversionError;
4400    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
4401        match value {
4402            "through" => Ok(Self::Through),
4403            "blind" => Ok(Self::Blind),
4404            "buried" => Ok(Self::Buried),
4405            "micro" => Ok(Self::Micro),
4406            _ => Err("invalid value".into()),
4407        }
4408    }
4409}
4410impl ::std::convert::TryFrom<&str> for BoardViaType {
4411    type Error = self::error::ConversionError;
4412    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
4413        value.parse()
4414    }
4415}
4416impl ::std::convert::TryFrom<&::std::string::String> for BoardViaType {
4417    type Error = self::error::ConversionError;
4418    fn try_from(
4419        value: &::std::string::String,
4420    ) -> ::std::result::Result<Self, self::error::ConversionError> {
4421        value.parse()
4422    }
4423}
4424impl ::std::convert::TryFrom<::std::string::String> for BoardViaType {
4425    type Error = self::error::ConversionError;
4426    fn try_from(
4427        value: ::std::string::String,
4428    ) -> ::std::result::Result<Self, self::error::ConversionError> {
4429        value.parse()
4430    }
4431}
4432/**Circle shared by graphical and drill producers. Graphic state requires only
4433layer. Drill state requires role plus layers; NPTH state additionally
4434requires all mask and pad-size hints. The generated semantic validator
4435enforces these mutually exclusive states.*/
4436///
4437/// <details><summary>JSON schema</summary>
4438///
4439/// ```json
4440///{
4441///  "description": "Circle shared by graphical and drill producers. Graphic state requires only\nlayer. Drill state requires role plus layers; NPTH state additionally\nrequires all mask and pad-size hints. The generated semantic validator\nenforces these mutually exclusive states.",
4442///  "type": "object",
4443///  "required": [
4444///    "cx",
4445///    "cy",
4446///    "diameter_nm",
4447///    "fill",
4448///    "index",
4449///    "kind",
4450///    "width_nm"
4451///  ],
4452///  "properties": {
4453///    "cx": {
4454///      "$ref": "#/$defs/JavaScriptSafeInteger"
4455///    },
4456///    "cy": {
4457///      "$ref": "#/$defs/JavaScriptSafeInteger"
4458///    },
4459///    "diameter_nm": {
4460///      "$ref": "#/$defs/JavaScriptSafeInteger"
4461///    },
4462///    "fill": {
4463///      "$ref": "#/$defs/PlotterFill"
4464///    },
4465///    "fill_color": {
4466///      "type": "string"
4467///    },
4468///    "index": {
4469///      "type": "integer",
4470///      "maximum": 4294967295.0,
4471///      "minimum": 0.0
4472///    },
4473///    "kind": {
4474///      "type": "string",
4475///      "const": "Circle"
4476///    },
4477///    "layer": {
4478///      "type": "string"
4479///    },
4480///    "layers": {
4481///      "type": [
4482///        "array",
4483///        "null"
4484///      ],
4485///      "items": {
4486///        "type": "string"
4487///      }
4488///    },
4489///    "line_style": {
4490///      "$ref": "#/$defs/PlotterLineStyle"
4491///    },
4492///    "mask_margin_nm": {
4493///      "$ref": "#/$defs/JavaScriptSafeInteger"
4494///    },
4495///    "pad_size_x_nm": {
4496///      "$ref": "#/$defs/JavaScriptSafeInteger"
4497///    },
4498///    "pad_size_y_nm": {
4499///      "$ref": "#/$defs/JavaScriptSafeInteger"
4500///    },
4501///    "role": {
4502///      "$ref": "#/$defs/PlotterDrillRole"
4503///    },
4504///    "stroke_color": {
4505///      "type": "string"
4506///    },
4507///    "width_nm": {
4508///      "$ref": "#/$defs/JavaScriptSafeInteger"
4509///    }
4510///  },
4511///  "additionalProperties": false
4512///}
4513/// ```
4514/// </details>
4515#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
4516#[serde(deny_unknown_fields)]
4517pub struct CircleOperation {
4518    pub cx: crate::JavaScriptSafeInteger,
4519    pub cy: crate::JavaScriptSafeInteger,
4520    pub diameter_nm: crate::JavaScriptSafeInteger,
4521    pub fill: PlotterFill,
4522    #[serde(
4523        default,
4524        deserialize_with = "crate::deserialize_present_nonnull",
4525        skip_serializing_if = "::std::option::Option::is_none"
4526    )]
4527    pub fill_color: ::std::option::Option<::std::string::String>,
4528    pub index: u32,
4529    #[serde(deserialize_with = "crate::deserialize_circle_kind")]
4530    pub kind: ::std::string::String,
4531    #[serde(
4532        default,
4533        deserialize_with = "crate::deserialize_present_nonnull",
4534        skip_serializing_if = "::std::option::Option::is_none"
4535    )]
4536    pub layer: ::std::option::Option<::std::string::String>,
4537    #[serde(
4538        default,
4539        deserialize_with = "crate::deserialize_present_nonnull",
4540        skip_serializing_if = "::std::option::Option::is_none"
4541    )]
4542    pub layers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
4543    #[serde(
4544        default,
4545        deserialize_with = "crate::deserialize_present_nonnull",
4546        skip_serializing_if = "::std::option::Option::is_none"
4547    )]
4548    pub line_style: ::std::option::Option<PlotterLineStyle>,
4549    #[serde(
4550        default,
4551        deserialize_with = "crate::deserialize_present_nonnull",
4552        skip_serializing_if = "::std::option::Option::is_none"
4553    )]
4554    pub mask_margin_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
4555    #[serde(
4556        default,
4557        deserialize_with = "crate::deserialize_present_nonnull",
4558        skip_serializing_if = "::std::option::Option::is_none"
4559    )]
4560    pub pad_size_x_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
4561    #[serde(
4562        default,
4563        deserialize_with = "crate::deserialize_present_nonnull",
4564        skip_serializing_if = "::std::option::Option::is_none"
4565    )]
4566    pub pad_size_y_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
4567    #[serde(
4568        default,
4569        deserialize_with = "crate::deserialize_present_nonnull",
4570        skip_serializing_if = "::std::option::Option::is_none"
4571    )]
4572    pub role: ::std::option::Option<PlotterDrillRole>,
4573    #[serde(
4574        default,
4575        deserialize_with = "crate::deserialize_present_nonnull",
4576        skip_serializing_if = "::std::option::Option::is_none"
4577    )]
4578    pub stroke_color: ::std::option::Option<::std::string::String>,
4579    pub width_nm: crate::JavaScriptSafeInteger,
4580}
4581///Dimension text (when present) followed by layered construction geometry.
4582///
4583/// <details><summary>JSON schema</summary>
4584///
4585/// ```json
4586///{
4587///  "description": "Dimension text (when present) followed by layered construction geometry.",
4588///  "type": "object",
4589///  "required": [
4590///    "dimension_type",
4591///    "kind",
4592///    "layers",
4593///    "object_id",
4594///    "operation_count",
4595///    "operations",
4596///    "uuid"
4597///  ],
4598///  "properties": {
4599///    "dimension_type": {
4600///      "$ref": "#/$defs/BoardDimensionType"
4601///    },
4602///    "kind": {
4603///      "type": "string",
4604///      "const": "dimension"
4605///    },
4606///    "layers": {
4607///      "type": "array",
4608///      "items": {
4609///        "type": "string"
4610///      }
4611///    },
4612///    "object_id": {
4613///      "type": "string",
4614///      "const": "dimension"
4615///    },
4616///    "operation_count": {
4617///      "type": "integer",
4618///      "maximum": 4294967295.0,
4619///      "minimum": 0.0
4620///    },
4621///    "operations": {
4622///      "type": "array",
4623///      "items": {
4624///        "$ref": "#/$defs/PlotterOperation"
4625///      }
4626///    },
4627///    "text": {
4628///      "type": "string"
4629///    },
4630///    "uuid": {
4631///      "type": "string"
4632///    }
4633///  },
4634///  "additionalProperties": false
4635///}
4636/// ```
4637/// </details>
4638#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
4639#[serde(deny_unknown_fields)]
4640pub struct DimensionPlotRecord {
4641    pub dimension_type: BoardDimensionType,
4642    pub kind: ::std::string::String,
4643    pub layers: ::std::vec::Vec<::std::string::String>,
4644    pub object_id: ::std::string::String,
4645    pub operation_count: u32,
4646    pub operations: ::std::vec::Vec<PlotterOperation>,
4647    #[serde(
4648        default,
4649        deserialize_with = "crate::deserialize_present_nonnull",
4650        skip_serializing_if = "::std::option::Option::is_none"
4651    )]
4652    pub text: ::std::option::Option<::std::string::String>,
4653    pub uuid: ::std::string::String,
4654}
4655/**Circular pad flash shared by footprint and PCB producers. Footprint pad
4656state requires mask_margin_nm and forbids role. Board via state requires
4657role and forbids mask_margin_nm. The generated semantic validator enforces
4658these mutually exclusive states.*/
4659///
4660/// <details><summary>JSON schema</summary>
4661///
4662/// ```json
4663///{
4664///  "description": "Circular pad flash shared by footprint and PCB producers. Footprint pad\nstate requires mask_margin_nm and forbids role. Board via state requires\nrole and forbids mask_margin_nm. The generated semantic validator enforces\nthese mutually exclusive states.",
4665///  "type": "object",
4666///  "required": [
4667///    "diameter_nm",
4668///    "index",
4669///    "kind",
4670///    "layers",
4671///    "x",
4672///    "y"
4673///  ],
4674///  "properties": {
4675///    "diameter_nm": {
4676///      "$ref": "#/$defs/JavaScriptSafeInteger"
4677///    },
4678///    "index": {
4679///      "type": "integer",
4680///      "maximum": 4294967295.0,
4681///      "minimum": 0.0
4682///    },
4683///    "kind": {
4684///      "type": "string",
4685///      "const": "FlashPadCircle"
4686///    },
4687///    "layers": {
4688///      "type": "array",
4689///      "items": {
4690///        "type": "string"
4691///      }
4692///    },
4693///    "mask_margin_nm": {
4694///      "$ref": "#/$defs/JavaScriptSafeInteger"
4695///    },
4696///    "role": {
4697///      "$ref": "#/$defs/PlotterViaFlashRole"
4698///    },
4699///    "x": {
4700///      "$ref": "#/$defs/JavaScriptSafeInteger"
4701///    },
4702///    "y": {
4703///      "$ref": "#/$defs/JavaScriptSafeInteger"
4704///    }
4705///  },
4706///  "additionalProperties": false
4707///}
4708/// ```
4709/// </details>
4710#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
4711#[serde(deny_unknown_fields)]
4712pub struct FlashPadCircleOperation {
4713    pub diameter_nm: crate::JavaScriptSafeInteger,
4714    pub index: u32,
4715    #[serde(deserialize_with = "crate::deserialize_flash_pad_circle_kind")]
4716    pub kind: ::std::string::String,
4717    pub layers: ::std::vec::Vec<::std::string::String>,
4718    #[serde(
4719        default,
4720        deserialize_with = "crate::deserialize_present_nonnull",
4721        skip_serializing_if = "::std::option::Option::is_none"
4722    )]
4723    pub mask_margin_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
4724    #[serde(
4725        default,
4726        deserialize_with = "crate::deserialize_present_nonnull",
4727        skip_serializing_if = "::std::option::Option::is_none"
4728    )]
4729    pub role: ::std::option::Option<PlotterViaFlashRole>,
4730    pub x: crate::JavaScriptSafeInteger,
4731    pub y: crate::JavaScriptSafeInteger,
4732}
4733/**Custom pad flash shared by footprint and PCB producers. Polygon coordinates
4734are pad-local. A non-empty polygon_widths_nm has one entry per polygon;
4735generated semantic validation enforces that relationship. An empty array is
4736equivalent to omission for generated Rust transport bindings.*/
4737///
4738/// <details><summary>JSON schema</summary>
4739///
4740/// ```json
4741///{
4742///  "description": "Custom pad flash shared by footprint and PCB producers. Polygon coordinates\nare pad-local. A non-empty polygon_widths_nm has one entry per polygon;\ngenerated semantic validation enforces that relationship. An empty array is\nequivalent to omission for generated Rust transport bindings.",
4743///  "type": "object",
4744///  "required": [
4745///    "index",
4746///    "kind",
4747///    "layers",
4748///    "mask_margin_nm",
4749///    "orient_deg",
4750///    "polygons",
4751///    "size_x_nm",
4752///    "size_y_nm",
4753///    "x",
4754///    "y"
4755///  ],
4756///  "properties": {
4757///    "anchor_shape": {
4758///      "type": "string"
4759///    },
4760///    "index": {
4761///      "type": "integer",
4762///      "maximum": 4294967295.0,
4763///      "minimum": 0.0
4764///    },
4765///    "kind": {
4766///      "type": "string",
4767///      "const": "FlashPadCustom"
4768///    },
4769///    "layers": {
4770///      "type": "array",
4771///      "items": {
4772///        "type": "string"
4773///      }
4774///    },
4775///    "mask_margin_nm": {
4776///      "$ref": "#/$defs/JavaScriptSafeInteger"
4777///    },
4778///    "orient_deg": {
4779///      "type": "number"
4780///    },
4781///    "polygon_widths_nm": {
4782///      "type": "array",
4783///      "items": {
4784///        "$ref": "#/$defs/JavaScriptSafeInteger"
4785///      }
4786///    },
4787///    "polygons": {
4788///      "type": "array",
4789///      "items": {
4790///        "type": "array",
4791///        "items": {
4792///          "$ref": "#/$defs/PlotterPoint"
4793///        }
4794///      }
4795///    },
4796///    "size_x_nm": {
4797///      "$ref": "#/$defs/JavaScriptSafeInteger"
4798///    },
4799///    "size_y_nm": {
4800///      "$ref": "#/$defs/JavaScriptSafeInteger"
4801///    },
4802///    "x": {
4803///      "$ref": "#/$defs/JavaScriptSafeInteger"
4804///    },
4805///    "y": {
4806///      "$ref": "#/$defs/JavaScriptSafeInteger"
4807///    }
4808///  },
4809///  "additionalProperties": false
4810///}
4811/// ```
4812/// </details>
4813#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
4814#[serde(deny_unknown_fields)]
4815pub struct FlashPadCustomOperation {
4816    #[serde(
4817        default,
4818        deserialize_with = "crate::deserialize_present_nonnull",
4819        skip_serializing_if = "::std::option::Option::is_none"
4820    )]
4821    pub anchor_shape: ::std::option::Option<::std::string::String>,
4822    pub index: u32,
4823    #[serde(deserialize_with = "crate::deserialize_flash_pad_custom_kind")]
4824    pub kind: ::std::string::String,
4825    pub layers: ::std::vec::Vec<::std::string::String>,
4826    pub mask_margin_nm: crate::JavaScriptSafeInteger,
4827    pub orient_deg: f64,
4828    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
4829    pub polygon_widths_nm: ::std::vec::Vec<crate::JavaScriptSafeInteger>,
4830    pub polygons: ::std::vec::Vec<::std::vec::Vec<PlotterPoint>>,
4831    pub size_x_nm: crate::JavaScriptSafeInteger,
4832    pub size_y_nm: crate::JavaScriptSafeInteger,
4833    pub x: crate::JavaScriptSafeInteger,
4834    pub y: crate::JavaScriptSafeInteger,
4835}
4836///Oval pad flash shared by footprint and PCB producers.
4837///
4838/// <details><summary>JSON schema</summary>
4839///
4840/// ```json
4841///{
4842///  "description": "Oval pad flash shared by footprint and PCB producers.",
4843///  "type": "object",
4844///  "required": [
4845///    "index",
4846///    "kind",
4847///    "layers",
4848///    "mask_margin_nm",
4849///    "orient_deg",
4850///    "size_x_nm",
4851///    "size_y_nm",
4852///    "x",
4853///    "y"
4854///  ],
4855///  "properties": {
4856///    "index": {
4857///      "type": "integer",
4858///      "maximum": 4294967295.0,
4859///      "minimum": 0.0
4860///    },
4861///    "kind": {
4862///      "type": "string",
4863///      "const": "FlashPadOval"
4864///    },
4865///    "layers": {
4866///      "type": "array",
4867///      "items": {
4868///        "type": "string"
4869///      }
4870///    },
4871///    "mask_margin_nm": {
4872///      "$ref": "#/$defs/JavaScriptSafeInteger"
4873///    },
4874///    "orient_deg": {
4875///      "type": "number"
4876///    },
4877///    "size_x_nm": {
4878///      "$ref": "#/$defs/JavaScriptSafeInteger"
4879///    },
4880///    "size_y_nm": {
4881///      "$ref": "#/$defs/JavaScriptSafeInteger"
4882///    },
4883///    "x": {
4884///      "$ref": "#/$defs/JavaScriptSafeInteger"
4885///    },
4886///    "y": {
4887///      "$ref": "#/$defs/JavaScriptSafeInteger"
4888///    }
4889///  },
4890///  "additionalProperties": false
4891///}
4892/// ```
4893/// </details>
4894#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
4895#[serde(deny_unknown_fields)]
4896pub struct FlashPadOvalOperation {
4897    pub index: u32,
4898    #[serde(deserialize_with = "crate::deserialize_flash_pad_oval_kind")]
4899    pub kind: ::std::string::String,
4900    pub layers: ::std::vec::Vec<::std::string::String>,
4901    pub mask_margin_nm: crate::JavaScriptSafeInteger,
4902    pub orient_deg: f64,
4903    pub size_x_nm: crate::JavaScriptSafeInteger,
4904    pub size_y_nm: crate::JavaScriptSafeInteger,
4905    pub x: crate::JavaScriptSafeInteger,
4906    pub y: crate::JavaScriptSafeInteger,
4907}
4908///Rectangular pad flash shared by footprint and PCB producers.
4909///
4910/// <details><summary>JSON schema</summary>
4911///
4912/// ```json
4913///{
4914///  "description": "Rectangular pad flash shared by footprint and PCB producers.",
4915///  "type": "object",
4916///  "required": [
4917///    "index",
4918///    "kind",
4919///    "layers",
4920///    "mask_margin_nm",
4921///    "orient_deg",
4922///    "size_x_nm",
4923///    "size_y_nm",
4924///    "x",
4925///    "y"
4926///  ],
4927///  "properties": {
4928///    "index": {
4929///      "type": "integer",
4930///      "maximum": 4294967295.0,
4931///      "minimum": 0.0
4932///    },
4933///    "kind": {
4934///      "type": "string",
4935///      "const": "FlashPadRect"
4936///    },
4937///    "layers": {
4938///      "type": "array",
4939///      "items": {
4940///        "type": "string"
4941///      }
4942///    },
4943///    "mask_margin_nm": {
4944///      "$ref": "#/$defs/JavaScriptSafeInteger"
4945///    },
4946///    "orient_deg": {
4947///      "type": "number"
4948///    },
4949///    "size_x_nm": {
4950///      "$ref": "#/$defs/JavaScriptSafeInteger"
4951///    },
4952///    "size_y_nm": {
4953///      "$ref": "#/$defs/JavaScriptSafeInteger"
4954///    },
4955///    "x": {
4956///      "$ref": "#/$defs/JavaScriptSafeInteger"
4957///    },
4958///    "y": {
4959///      "$ref": "#/$defs/JavaScriptSafeInteger"
4960///    }
4961///  },
4962///  "additionalProperties": false
4963///}
4964/// ```
4965/// </details>
4966#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
4967#[serde(deny_unknown_fields)]
4968pub struct FlashPadRectOperation {
4969    pub index: u32,
4970    #[serde(deserialize_with = "crate::deserialize_flash_pad_rect_kind")]
4971    pub kind: ::std::string::String,
4972    pub layers: ::std::vec::Vec<::std::string::String>,
4973    pub mask_margin_nm: crate::JavaScriptSafeInteger,
4974    pub orient_deg: f64,
4975    pub size_x_nm: crate::JavaScriptSafeInteger,
4976    pub size_y_nm: crate::JavaScriptSafeInteger,
4977    pub x: crate::JavaScriptSafeInteger,
4978    pub y: crate::JavaScriptSafeInteger,
4979}
4980///Rounded-rectangle pad flash shared by footprint and PCB producers.
4981///
4982/// <details><summary>JSON schema</summary>
4983///
4984/// ```json
4985///{
4986///  "description": "Rounded-rectangle pad flash shared by footprint and PCB producers.",
4987///  "type": "object",
4988///  "required": [
4989///    "corner_radius_nm",
4990///    "index",
4991///    "kind",
4992///    "layers",
4993///    "mask_margin_nm",
4994///    "orient_deg",
4995///    "size_x_nm",
4996///    "size_y_nm",
4997///    "x",
4998///    "y"
4999///  ],
5000///  "properties": {
5001///    "corner_radius_nm": {
5002///      "$ref": "#/$defs/JavaScriptSafeInteger"
5003///    },
5004///    "index": {
5005///      "type": "integer",
5006///      "maximum": 4294967295.0,
5007///      "minimum": 0.0
5008///    },
5009///    "kind": {
5010///      "type": "string",
5011///      "const": "FlashPadRoundRect"
5012///    },
5013///    "layers": {
5014///      "type": "array",
5015///      "items": {
5016///        "type": "string"
5017///      }
5018///    },
5019///    "mask_margin_nm": {
5020///      "$ref": "#/$defs/JavaScriptSafeInteger"
5021///    },
5022///    "orient_deg": {
5023///      "type": "number"
5024///    },
5025///    "size_x_nm": {
5026///      "$ref": "#/$defs/JavaScriptSafeInteger"
5027///    },
5028///    "size_y_nm": {
5029///      "$ref": "#/$defs/JavaScriptSafeInteger"
5030///    },
5031///    "x": {
5032///      "$ref": "#/$defs/JavaScriptSafeInteger"
5033///    },
5034///    "y": {
5035///      "$ref": "#/$defs/JavaScriptSafeInteger"
5036///    }
5037///  },
5038///  "additionalProperties": false
5039///}
5040/// ```
5041/// </details>
5042#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
5043#[serde(deny_unknown_fields)]
5044pub struct FlashPadRoundRectOperation {
5045    pub corner_radius_nm: crate::JavaScriptSafeInteger,
5046    pub index: u32,
5047    #[serde(deserialize_with = "crate::deserialize_flash_pad_round_rect_kind")]
5048    pub kind: ::std::string::String,
5049    pub layers: ::std::vec::Vec<::std::string::String>,
5050    pub mask_margin_nm: crate::JavaScriptSafeInteger,
5051    pub orient_deg: f64,
5052    pub size_x_nm: crate::JavaScriptSafeInteger,
5053    pub size_y_nm: crate::JavaScriptSafeInteger,
5054    pub x: crate::JavaScriptSafeInteger,
5055    pub y: crate::JavaScriptSafeInteger,
5056}
5057///Trapezoid pad flash shared by footprint and PCB producers.
5058///
5059/// <details><summary>JSON schema</summary>
5060///
5061/// ```json
5062///{
5063///  "description": "Trapezoid pad flash shared by footprint and PCB producers.",
5064///  "type": "object",
5065///  "required": [
5066///    "corners",
5067///    "index",
5068///    "kind",
5069///    "layers",
5070///    "mask_margin_nm",
5071///    "orient_deg",
5072///    "x",
5073///    "y"
5074///  ],
5075///  "properties": {
5076///    "corners": {
5077///      "$ref": "#/$defs/PlotterQuad"
5078///    },
5079///    "index": {
5080///      "type": "integer",
5081///      "maximum": 4294967295.0,
5082///      "minimum": 0.0
5083///    },
5084///    "kind": {
5085///      "type": "string",
5086///      "const": "FlashPadTrapez"
5087///    },
5088///    "layers": {
5089///      "type": "array",
5090///      "items": {
5091///        "type": "string"
5092///      }
5093///    },
5094///    "mask_margin_nm": {
5095///      "$ref": "#/$defs/JavaScriptSafeInteger"
5096///    },
5097///    "orient_deg": {
5098///      "type": "number"
5099///    },
5100///    "x": {
5101///      "$ref": "#/$defs/JavaScriptSafeInteger"
5102///    },
5103///    "y": {
5104///      "$ref": "#/$defs/JavaScriptSafeInteger"
5105///    }
5106///  },
5107///  "additionalProperties": false
5108///}
5109/// ```
5110/// </details>
5111#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
5112#[serde(deny_unknown_fields)]
5113pub struct FlashPadTrapezOperation {
5114    pub corners: PlotterQuad,
5115    pub index: u32,
5116    #[serde(deserialize_with = "crate::deserialize_flash_pad_trapez_kind")]
5117    pub kind: ::std::string::String,
5118    pub layers: ::std::vec::Vec<::std::string::String>,
5119    pub mask_margin_nm: crate::JavaScriptSafeInteger,
5120    pub orient_deg: f64,
5121    pub x: crate::JavaScriptSafeInteger,
5122    pub y: crate::JavaScriptSafeInteger,
5123}
5124///Decoded image placement shared by worksheet and schematic producers.
5125///
5126/// <details><summary>JSON schema</summary>
5127///
5128/// ```json
5129///{
5130///  "description": "Decoded image placement shared by worksheet and schematic producers.",
5131///  "type": "object",
5132///  "required": [
5133///    "height_nm",
5134///    "image_data_b64",
5135///    "image_format",
5136///    "index",
5137///    "kind",
5138///    "scale",
5139///    "width_nm",
5140///    "x",
5141///    "y"
5142///  ],
5143///  "properties": {
5144///    "height_nm": {
5145///      "$ref": "#/$defs/JavaScriptSafeInteger"
5146///    },
5147///    "image_data_b64": {
5148///      "type": "string"
5149///    },
5150///    "image_format": {
5151///      "type": "string"
5152///    },
5153///    "index": {
5154///      "type": "integer",
5155///      "maximum": 4294967295.0,
5156///      "minimum": 0.0
5157///    },
5158///    "kind": {
5159///      "type": "string",
5160///      "const": "PlotImage"
5161///    },
5162///    "scale": {
5163///      "type": "number"
5164///    },
5165///    "stroke_color": {
5166///      "type": "string"
5167///    },
5168///    "width_nm": {
5169///      "$ref": "#/$defs/JavaScriptSafeInteger"
5170///    },
5171///    "x": {
5172///      "$ref": "#/$defs/JavaScriptSafeInteger"
5173///    },
5174///    "y": {
5175///      "$ref": "#/$defs/JavaScriptSafeInteger"
5176///    }
5177///  },
5178///  "additionalProperties": false
5179///}
5180/// ```
5181/// </details>
5182#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
5183#[serde(deny_unknown_fields)]
5184pub struct PlotImageOperation {
5185    pub height_nm: crate::JavaScriptSafeInteger,
5186    pub image_data_b64: ::std::string::String,
5187    pub image_format: ::std::string::String,
5188    pub index: u32,
5189    #[serde(deserialize_with = "crate::deserialize_plot_image_kind")]
5190    pub kind: ::std::string::String,
5191    pub scale: f64,
5192    #[serde(
5193        default,
5194        deserialize_with = "crate::deserialize_present_nonnull",
5195        skip_serializing_if = "::std::option::Option::is_none"
5196    )]
5197    pub stroke_color: ::std::option::Option<::std::string::String>,
5198    pub width_nm: crate::JavaScriptSafeInteger,
5199    pub x: crate::JavaScriptSafeInteger,
5200    pub y: crate::JavaScriptSafeInteger,
5201}
5202///Filled or outlined polygon operation.
5203///
5204/// <details><summary>JSON schema</summary>
5205///
5206/// ```json
5207///{
5208///  "description": "Filled or outlined polygon operation.",
5209///  "type": "object",
5210///  "required": [
5211///    "fill",
5212///    "index",
5213///    "kind",
5214///    "points",
5215///    "width_nm"
5216///  ],
5217///  "properties": {
5218///    "fill": {
5219///      "$ref": "#/$defs/PlotterFill"
5220///    },
5221///    "fill_color": {
5222///      "type": "string"
5223///    },
5224///    "index": {
5225///      "type": "integer",
5226///      "maximum": 4294967295.0,
5227///      "minimum": 0.0
5228///    },
5229///    "kind": {
5230///      "type": "string",
5231///      "const": "PlotPoly"
5232///    },
5233///    "layer": {
5234///      "type": "string"
5235///    },
5236///    "line_style": {
5237///      "$ref": "#/$defs/PlotterLineStyle"
5238///    },
5239///    "points": {
5240///      "type": "array",
5241///      "items": {
5242///        "$ref": "#/$defs/PlotterPoint"
5243///      }
5244///    },
5245///    "stroke_color": {
5246///      "type": "string"
5247///    },
5248///    "width_nm": {
5249///      "$ref": "#/$defs/JavaScriptSafeInteger"
5250///    }
5251///  },
5252///  "additionalProperties": false
5253///}
5254/// ```
5255/// </details>
5256#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
5257#[serde(deny_unknown_fields)]
5258pub struct PlotPolyOperation {
5259    pub fill: PlotterFill,
5260    #[serde(
5261        default,
5262        deserialize_with = "crate::deserialize_present_nonnull",
5263        skip_serializing_if = "::std::option::Option::is_none"
5264    )]
5265    pub fill_color: ::std::option::Option<::std::string::String>,
5266    pub index: u32,
5267    #[serde(deserialize_with = "crate::deserialize_plot_poly_kind")]
5268    pub kind: ::std::string::String,
5269    #[serde(
5270        default,
5271        deserialize_with = "crate::deserialize_present_nonnull",
5272        skip_serializing_if = "::std::option::Option::is_none"
5273    )]
5274    pub layer: ::std::option::Option<::std::string::String>,
5275    #[serde(
5276        default,
5277        deserialize_with = "crate::deserialize_present_nonnull",
5278        skip_serializing_if = "::std::option::Option::is_none"
5279    )]
5280    pub line_style: ::std::option::Option<PlotterLineStyle>,
5281    pub points: ::std::vec::Vec<PlotterPoint>,
5282    #[serde(
5283        default,
5284        deserialize_with = "crate::deserialize_present_nonnull",
5285        skip_serializing_if = "::std::option::Option::is_none"
5286    )]
5287    pub stroke_color: ::std::option::Option<::std::string::String>,
5288    pub width_nm: crate::JavaScriptSafeInteger,
5289}
5290///Coordinate convention for the footprint plotter slice.
5291///
5292/// <details><summary>JSON schema</summary>
5293///
5294/// ```json
5295///{
5296///  "description": "Coordinate convention for the footprint plotter slice.",
5297///  "type": "object",
5298///  "required": [
5299///    "unit",
5300///    "y_axis"
5301///  ],
5302///  "properties": {
5303///    "unit": {
5304///      "type": "string",
5305///      "const": "nm"
5306///    },
5307///    "y_axis": {
5308///      "type": "string",
5309///      "const": "down"
5310///    }
5311///  },
5312///  "additionalProperties": false
5313///}
5314/// ```
5315/// </details>
5316#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
5317#[serde(deny_unknown_fields)]
5318pub struct PlotterCoordinateSpace {
5319    pub unit: ::std::string::String,
5320    pub y_axis: ::std::string::String,
5321}
5322///Semantic roles allowed on shared circle and segment drill operations.
5323///
5324/// <details><summary>JSON schema</summary>
5325///
5326/// ```json
5327///{
5328///  "description": "Semantic roles allowed on shared circle and segment drill operations.",
5329///  "type": "string",
5330///  "enum": [
5331///    "pad_drill",
5332///    "npth_hole",
5333///    "via_drill",
5334///    "via_mask_drill"
5335///  ]
5336///}
5337/// ```
5338/// </details>
5339#[derive(
5340    ::serde::Deserialize,
5341    ::serde::Serialize,
5342    Clone,
5343    Copy,
5344    Debug,
5345    Eq,
5346    Hash,
5347    Ord,
5348    PartialEq,
5349    PartialOrd,
5350)]
5351pub enum PlotterDrillRole {
5352    #[serde(rename = "pad_drill")]
5353    PadDrill,
5354    #[serde(rename = "npth_hole")]
5355    NpthHole,
5356    #[serde(rename = "via_drill")]
5357    ViaDrill,
5358    #[serde(rename = "via_mask_drill")]
5359    ViaMaskDrill,
5360}
5361impl ::std::fmt::Display for PlotterDrillRole {
5362    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
5363        match *self {
5364            Self::PadDrill => f.write_str("pad_drill"),
5365            Self::NpthHole => f.write_str("npth_hole"),
5366            Self::ViaDrill => f.write_str("via_drill"),
5367            Self::ViaMaskDrill => f.write_str("via_mask_drill"),
5368        }
5369    }
5370}
5371impl ::std::str::FromStr for PlotterDrillRole {
5372    type Err = self::error::ConversionError;
5373    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
5374        match value {
5375            "pad_drill" => Ok(Self::PadDrill),
5376            "npth_hole" => Ok(Self::NpthHole),
5377            "via_drill" => Ok(Self::ViaDrill),
5378            "via_mask_drill" => Ok(Self::ViaMaskDrill),
5379            _ => Err("invalid value".into()),
5380        }
5381    }
5382}
5383impl ::std::convert::TryFrom<&str> for PlotterDrillRole {
5384    type Error = self::error::ConversionError;
5385    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
5386        value.parse()
5387    }
5388}
5389impl ::std::convert::TryFrom<&::std::string::String> for PlotterDrillRole {
5390    type Error = self::error::ConversionError;
5391    fn try_from(
5392        value: &::std::string::String,
5393    ) -> ::std::result::Result<Self, self::error::ConversionError> {
5394        value.parse()
5395    }
5396}
5397impl ::std::convert::TryFrom<::std::string::String> for PlotterDrillRole {
5398    type Error = self::error::ConversionError;
5399    fn try_from(
5400        value: ::std::string::String,
5401    ) -> ::std::result::Result<Self, self::error::ConversionError> {
5402        value.parse()
5403    }
5404}
5405///Fill values shared by plotter operation producers.
5406///
5407/// <details><summary>JSON schema</summary>
5408///
5409/// ```json
5410///{
5411///  "description": "Fill values shared by plotter operation producers.",
5412///  "type": "string",
5413///  "enum": [
5414///    "NO_FILL",
5415///    "FILLED_SHAPE",
5416///    "FILLED_WITH_BG_BODYCOLOR",
5417///    "FILLED_WITH_COLOR",
5418///    "HATCH",
5419///    "REVERSE_HATCH",
5420///    "CROSS_HATCH"
5421///  ]
5422///}
5423/// ```
5424/// </details>
5425#[derive(
5426    ::serde::Deserialize,
5427    ::serde::Serialize,
5428    Clone,
5429    Copy,
5430    Debug,
5431    Eq,
5432    Hash,
5433    Ord,
5434    PartialEq,
5435    PartialOrd,
5436)]
5437pub enum PlotterFill {
5438    #[serde(rename = "NO_FILL")]
5439    NoFill,
5440    #[serde(rename = "FILLED_SHAPE")]
5441    FilledShape,
5442    #[serde(rename = "FILLED_WITH_BG_BODYCOLOR")]
5443    FilledWithBgBodycolor,
5444    #[serde(rename = "FILLED_WITH_COLOR")]
5445    FilledWithColor,
5446    #[serde(rename = "HATCH")]
5447    Hatch,
5448    #[serde(rename = "REVERSE_HATCH")]
5449    ReverseHatch,
5450    #[serde(rename = "CROSS_HATCH")]
5451    CrossHatch,
5452}
5453impl ::std::fmt::Display for PlotterFill {
5454    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
5455        match *self {
5456            Self::NoFill => f.write_str("NO_FILL"),
5457            Self::FilledShape => f.write_str("FILLED_SHAPE"),
5458            Self::FilledWithBgBodycolor => f.write_str("FILLED_WITH_BG_BODYCOLOR"),
5459            Self::FilledWithColor => f.write_str("FILLED_WITH_COLOR"),
5460            Self::Hatch => f.write_str("HATCH"),
5461            Self::ReverseHatch => f.write_str("REVERSE_HATCH"),
5462            Self::CrossHatch => f.write_str("CROSS_HATCH"),
5463        }
5464    }
5465}
5466impl ::std::str::FromStr for PlotterFill {
5467    type Err = self::error::ConversionError;
5468    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
5469        match value {
5470            "NO_FILL" => Ok(Self::NoFill),
5471            "FILLED_SHAPE" => Ok(Self::FilledShape),
5472            "FILLED_WITH_BG_BODYCOLOR" => Ok(Self::FilledWithBgBodycolor),
5473            "FILLED_WITH_COLOR" => Ok(Self::FilledWithColor),
5474            "HATCH" => Ok(Self::Hatch),
5475            "REVERSE_HATCH" => Ok(Self::ReverseHatch),
5476            "CROSS_HATCH" => Ok(Self::CrossHatch),
5477            _ => Err("invalid value".into()),
5478        }
5479    }
5480}
5481impl ::std::convert::TryFrom<&str> for PlotterFill {
5482    type Error = self::error::ConversionError;
5483    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
5484        value.parse()
5485    }
5486}
5487impl ::std::convert::TryFrom<&::std::string::String> for PlotterFill {
5488    type Error = self::error::ConversionError;
5489    fn try_from(
5490        value: &::std::string::String,
5491    ) -> ::std::result::Result<Self, self::error::ConversionError> {
5492        value.parse()
5493    }
5494}
5495impl ::std::convert::TryFrom<::std::string::String> for PlotterFill {
5496    type Error = self::error::ConversionError;
5497    fn try_from(
5498        value: ::std::string::String,
5499    ) -> ::std::result::Result<Self, self::error::ConversionError> {
5500        value.parse()
5501    }
5502}
5503///One exact hyperlink attached to an authored plotter text carrier.
5504///
5505/// <details><summary>JSON schema</summary>
5506///
5507/// ```json
5508///{
5509///  "description": "One exact hyperlink attached to an authored plotter text carrier.",
5510///  "type": "object",
5511///  "required": [
5512///    "href"
5513///  ],
5514///  "properties": {
5515///    "href": {
5516///      "type": "string",
5517///      "minLength": 1
5518///    }
5519///  },
5520///  "additionalProperties": false
5521///}
5522/// ```
5523/// </details>
5524#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
5525#[serde(deny_unknown_fields)]
5526pub struct PlotterHyperlink {
5527    pub href: PlotterHyperlinkHref,
5528}
5529///`PlotterHyperlinkHref`
5530///
5531/// <details><summary>JSON schema</summary>
5532///
5533/// ```json
5534///{
5535///  "type": "string",
5536///  "minLength": 1
5537///}
5538/// ```
5539/// </details>
5540#[derive(::serde::Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
5541#[serde(transparent)]
5542pub struct PlotterHyperlinkHref(::std::string::String);
5543impl ::std::ops::Deref for PlotterHyperlinkHref {
5544    type Target = ::std::string::String;
5545    fn deref(&self) -> &::std::string::String {
5546        &self.0
5547    }
5548}
5549impl ::std::convert::From<PlotterHyperlinkHref> for ::std::string::String {
5550    fn from(value: PlotterHyperlinkHref) -> Self {
5551        value.0
5552    }
5553}
5554impl ::std::str::FromStr for PlotterHyperlinkHref {
5555    type Err = self::error::ConversionError;
5556    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
5557        if value.chars().count() < 1usize {
5558            return Err("shorter than 1 characters".into());
5559        }
5560        Ok(Self(value.to_string()))
5561    }
5562}
5563impl ::std::convert::TryFrom<&str> for PlotterHyperlinkHref {
5564    type Error = self::error::ConversionError;
5565    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
5566        value.parse()
5567    }
5568}
5569impl ::std::convert::TryFrom<&::std::string::String> for PlotterHyperlinkHref {
5570    type Error = self::error::ConversionError;
5571    fn try_from(
5572        value: &::std::string::String,
5573    ) -> ::std::result::Result<Self, self::error::ConversionError> {
5574        value.parse()
5575    }
5576}
5577impl ::std::convert::TryFrom<::std::string::String> for PlotterHyperlinkHref {
5578    type Error = self::error::ConversionError;
5579    fn try_from(
5580        value: ::std::string::String,
5581    ) -> ::std::result::Result<Self, self::error::ConversionError> {
5582        value.parse()
5583    }
5584}
5585impl<'de> ::serde::Deserialize<'de> for PlotterHyperlinkHref {
5586    fn deserialize<D>(deserializer: D) -> ::std::result::Result<Self, D::Error>
5587    where
5588        D: ::serde::Deserializer<'de>,
5589    {
5590        ::std::string::String::deserialize(deserializer)?
5591            .parse()
5592            .map_err(|e: self::error::ConversionError| {
5593                <D::Error as ::serde::de::Error>::custom(e.to_string())
5594            })
5595    }
5596}
5597///KiCad stroke styles carried without producer-specific decomposition.
5598///
5599/// <details><summary>JSON schema</summary>
5600///
5601/// ```json
5602///{
5603///  "description": "KiCad stroke styles carried without producer-specific decomposition.",
5604///  "type": "string",
5605///  "enum": [
5606///    "DEFAULT",
5607///    "SOLID",
5608///    "DASH",
5609///    "DOT",
5610///    "DASH_DOT",
5611///    "DASH_DOT_DOT"
5612///  ]
5613///}
5614/// ```
5615/// </details>
5616#[derive(
5617    ::serde::Deserialize,
5618    ::serde::Serialize,
5619    Clone,
5620    Copy,
5621    Debug,
5622    Eq,
5623    Hash,
5624    Ord,
5625    PartialEq,
5626    PartialOrd,
5627)]
5628pub enum PlotterLineStyle {
5629    #[serde(rename = "DEFAULT")]
5630    Default,
5631    #[serde(rename = "SOLID")]
5632    Solid,
5633    #[serde(rename = "DASH")]
5634    Dash,
5635    #[serde(rename = "DOT")]
5636    Dot,
5637    #[serde(rename = "DASH_DOT")]
5638    DashDot,
5639    #[serde(rename = "DASH_DOT_DOT")]
5640    DashDotDot,
5641}
5642impl ::std::fmt::Display for PlotterLineStyle {
5643    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
5644        match *self {
5645            Self::Default => f.write_str("DEFAULT"),
5646            Self::Solid => f.write_str("SOLID"),
5647            Self::Dash => f.write_str("DASH"),
5648            Self::Dot => f.write_str("DOT"),
5649            Self::DashDot => f.write_str("DASH_DOT"),
5650            Self::DashDotDot => f.write_str("DASH_DOT_DOT"),
5651        }
5652    }
5653}
5654impl ::std::str::FromStr for PlotterLineStyle {
5655    type Err = self::error::ConversionError;
5656    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
5657        match value {
5658            "DEFAULT" => Ok(Self::Default),
5659            "SOLID" => Ok(Self::Solid),
5660            "DASH" => Ok(Self::Dash),
5661            "DOT" => Ok(Self::Dot),
5662            "DASH_DOT" => Ok(Self::DashDot),
5663            "DASH_DOT_DOT" => Ok(Self::DashDotDot),
5664            _ => Err("invalid value".into()),
5665        }
5666    }
5667}
5668impl ::std::convert::TryFrom<&str> for PlotterLineStyle {
5669    type Error = self::error::ConversionError;
5670    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
5671        value.parse()
5672    }
5673}
5674impl ::std::convert::TryFrom<&::std::string::String> for PlotterLineStyle {
5675    type Error = self::error::ConversionError;
5676    fn try_from(
5677        value: &::std::string::String,
5678    ) -> ::std::result::Result<Self, self::error::ConversionError> {
5679        value.parse()
5680    }
5681}
5682impl ::std::convert::TryFrom<::std::string::String> for PlotterLineStyle {
5683    type Error = self::error::ConversionError;
5684    fn try_from(
5685        value: ::std::string::String,
5686    ) -> ::std::result::Result<Self, self::error::ConversionError> {
5687        value.parse()
5688    }
5689}
5690///Shared plotter operation vocabulary promoted across source producers.
5691///
5692/// <details><summary>JSON schema</summary>
5693///
5694/// ```json
5695///{
5696///  "description": "Shared plotter operation vocabulary promoted across source producers.",
5697///  "anyOf": [
5698///    {
5699///      "$ref": "#/$defs/ThickSegmentOperation"
5700///    },
5701///    {
5702///      "$ref": "#/$defs/ArcThreePointOperation"
5703///    },
5704///    {
5705///      "$ref": "#/$defs/CircleOperation"
5706///    },
5707///    {
5708///      "$ref": "#/$defs/RectOperation"
5709///    },
5710///    {
5711///      "$ref": "#/$defs/PlotPolyOperation"
5712///    },
5713///    {
5714///      "$ref": "#/$defs/BezierCurveOperation"
5715///    },
5716///    {
5717///      "$ref": "#/$defs/TextOperation"
5718///    },
5719///    {
5720///      "$ref": "#/$defs/PlotImageOperation"
5721///    },
5722///    {
5723///      "$ref": "#/$defs/FlashPadCircleOperation"
5724///    },
5725///    {
5726///      "$ref": "#/$defs/FlashPadOvalOperation"
5727///    },
5728///    {
5729///      "$ref": "#/$defs/FlashPadRectOperation"
5730///    },
5731///    {
5732///      "$ref": "#/$defs/FlashPadRoundRectOperation"
5733///    },
5734///    {
5735///      "$ref": "#/$defs/FlashPadCustomOperation"
5736///    },
5737///    {
5738///      "$ref": "#/$defs/FlashPadTrapezOperation"
5739///    }
5740///  ]
5741///}
5742/// ```
5743/// </details>
5744#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
5745#[serde(untagged)]
5746pub enum PlotterOperation {
5747    ThickSegmentOperation(ThickSegmentOperation),
5748    ArcThreePointOperation(ArcThreePointOperation),
5749    CircleOperation(CircleOperation),
5750    RectOperation(RectOperation),
5751    PlotPolyOperation(PlotPolyOperation),
5752    BezierCurveOperation(BezierCurveOperation),
5753    TextOperation(TextOperation),
5754    PlotImageOperation(PlotImageOperation),
5755    FlashPadCircleOperation(FlashPadCircleOperation),
5756    FlashPadOvalOperation(FlashPadOvalOperation),
5757    FlashPadRectOperation(FlashPadRectOperation),
5758    FlashPadRoundRectOperation(FlashPadRoundRectOperation),
5759    FlashPadCustomOperation(FlashPadCustomOperation),
5760    FlashPadTrapezOperation(FlashPadTrapezOperation),
5761}
5762impl ::std::convert::From<ThickSegmentOperation> for PlotterOperation {
5763    fn from(value: ThickSegmentOperation) -> Self {
5764        Self::ThickSegmentOperation(value)
5765    }
5766}
5767impl ::std::convert::From<ArcThreePointOperation> for PlotterOperation {
5768    fn from(value: ArcThreePointOperation) -> Self {
5769        Self::ArcThreePointOperation(value)
5770    }
5771}
5772impl ::std::convert::From<CircleOperation> for PlotterOperation {
5773    fn from(value: CircleOperation) -> Self {
5774        Self::CircleOperation(value)
5775    }
5776}
5777impl ::std::convert::From<RectOperation> for PlotterOperation {
5778    fn from(value: RectOperation) -> Self {
5779        Self::RectOperation(value)
5780    }
5781}
5782impl ::std::convert::From<PlotPolyOperation> for PlotterOperation {
5783    fn from(value: PlotPolyOperation) -> Self {
5784        Self::PlotPolyOperation(value)
5785    }
5786}
5787impl ::std::convert::From<BezierCurveOperation> for PlotterOperation {
5788    fn from(value: BezierCurveOperation) -> Self {
5789        Self::BezierCurveOperation(value)
5790    }
5791}
5792impl ::std::convert::From<TextOperation> for PlotterOperation {
5793    fn from(value: TextOperation) -> Self {
5794        Self::TextOperation(value)
5795    }
5796}
5797impl ::std::convert::From<PlotImageOperation> for PlotterOperation {
5798    fn from(value: PlotImageOperation) -> Self {
5799        Self::PlotImageOperation(value)
5800    }
5801}
5802impl ::std::convert::From<FlashPadCircleOperation> for PlotterOperation {
5803    fn from(value: FlashPadCircleOperation) -> Self {
5804        Self::FlashPadCircleOperation(value)
5805    }
5806}
5807impl ::std::convert::From<FlashPadOvalOperation> for PlotterOperation {
5808    fn from(value: FlashPadOvalOperation) -> Self {
5809        Self::FlashPadOvalOperation(value)
5810    }
5811}
5812impl ::std::convert::From<FlashPadRectOperation> for PlotterOperation {
5813    fn from(value: FlashPadRectOperation) -> Self {
5814        Self::FlashPadRectOperation(value)
5815    }
5816}
5817impl ::std::convert::From<FlashPadRoundRectOperation> for PlotterOperation {
5818    fn from(value: FlashPadRoundRectOperation) -> Self {
5819        Self::FlashPadRoundRectOperation(value)
5820    }
5821}
5822impl ::std::convert::From<FlashPadCustomOperation> for PlotterOperation {
5823    fn from(value: FlashPadCustomOperation) -> Self {
5824        Self::FlashPadCustomOperation(value)
5825    }
5826}
5827impl ::std::convert::From<FlashPadTrapezOperation> for PlotterOperation {
5828    fn from(value: FlashPadTrapezOperation) -> Self {
5829        Self::FlashPadTrapezOperation(value)
5830    }
5831}
5832///Strict operation-local context emitted by current plotter producers.
5833///
5834/// <details><summary>JSON schema</summary>
5835///
5836/// ```json
5837///{
5838///  "description": "Strict operation-local context emitted by current plotter producers.",
5839///  "type": "object",
5840///  "required": [
5841///    "hyperlink"
5842///  ],
5843///  "properties": {
5844///    "hyperlink": {
5845///      "$ref": "#/$defs/PlotterHyperlink"
5846///    }
5847///  },
5848///  "additionalProperties": false
5849///}
5850/// ```
5851/// </details>
5852#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
5853#[serde(deny_unknown_fields)]
5854pub struct PlotterOperationContext {
5855    pub hyperlink: PlotterHyperlink,
5856}
5857///Plotter point encoded as an exact coordinate pair.
5858///
5859/// <details><summary>JSON schema</summary>
5860///
5861/// ```json
5862///{
5863///  "description": "Plotter point encoded as an exact coordinate pair.",
5864///  "type": "array",
5865///  "items": {
5866///    "$ref": "#/$defs/JavaScriptSafeInteger"
5867///  },
5868///  "maxItems": 2,
5869///  "minItems": 2
5870///}
5871/// ```
5872/// </details>
5873#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
5874#[serde(transparent)]
5875pub struct PlotterPoint(pub [crate::JavaScriptSafeInteger; 2usize]);
5876impl ::std::ops::Deref for PlotterPoint {
5877    type Target = [crate::JavaScriptSafeInteger; 2usize];
5878    fn deref(&self) -> &[crate::JavaScriptSafeInteger; 2usize] {
5879        &self.0
5880    }
5881}
5882impl ::std::convert::From<PlotterPoint> for [crate::JavaScriptSafeInteger; 2usize] {
5883    fn from(value: PlotterPoint) -> Self {
5884        value.0
5885    }
5886}
5887impl ::std::convert::From<[crate::JavaScriptSafeInteger; 2usize]> for PlotterPoint {
5888    fn from(value: [crate::JavaScriptSafeInteger; 2usize]) -> Self {
5889        Self(value)
5890    }
5891}
5892///Four pad-local trapezoid corners.
5893///
5894/// <details><summary>JSON schema</summary>
5895///
5896/// ```json
5897///{
5898///  "description": "Four pad-local trapezoid corners.",
5899///  "type": "array",
5900///  "items": {
5901///    "$ref": "#/$defs/PlotterPoint"
5902///  },
5903///  "maxItems": 4,
5904///  "minItems": 4
5905///}
5906/// ```
5907/// </details>
5908#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
5909#[serde(transparent)]
5910pub struct PlotterQuad(pub [PlotterPoint; 4usize]);
5911impl ::std::ops::Deref for PlotterQuad {
5912    type Target = [PlotterPoint; 4usize];
5913    fn deref(&self) -> &[PlotterPoint; 4usize] {
5914        &self.0
5915    }
5916}
5917impl ::std::convert::From<PlotterQuad> for [PlotterPoint; 4usize] {
5918    fn from(value: PlotterQuad) -> Self {
5919        value.0
5920    }
5921}
5922impl ::std::convert::From<[PlotterPoint; 4usize]> for PlotterQuad {
5923    fn from(value: [PlotterPoint; 4usize]) -> Self {
5924        Self(value)
5925    }
5926}
5927///Stringified boolean metadata mirrored from the established producer.
5928///
5929/// <details><summary>JSON schema</summary>
5930///
5931/// ```json
5932///{
5933///  "description": "Stringified boolean metadata mirrored from the established producer.",
5934///  "type": "string",
5935///  "enum": [
5936///    "true",
5937///    "false"
5938///  ]
5939///}
5940/// ```
5941/// </details>
5942#[derive(
5943    ::serde::Deserialize,
5944    ::serde::Serialize,
5945    Clone,
5946    Copy,
5947    Debug,
5948    Eq,
5949    Hash,
5950    Ord,
5951    PartialEq,
5952    PartialOrd,
5953)]
5954pub enum PlotterStringBool {
5955    #[serde(rename = "true")]
5956    True,
5957    #[serde(rename = "false")]
5958    False,
5959}
5960impl ::std::fmt::Display for PlotterStringBool {
5961    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
5962        match *self {
5963            Self::True => f.write_str("true"),
5964            Self::False => f.write_str("false"),
5965        }
5966    }
5967}
5968impl ::std::str::FromStr for PlotterStringBool {
5969    type Err = self::error::ConversionError;
5970    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
5971        match value {
5972            "true" => Ok(Self::True),
5973            "false" => Ok(Self::False),
5974            _ => Err("invalid value".into()),
5975        }
5976    }
5977}
5978impl ::std::convert::TryFrom<&str> for PlotterStringBool {
5979    type Error = self::error::ConversionError;
5980    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
5981        value.parse()
5982    }
5983}
5984impl ::std::convert::TryFrom<&::std::string::String> for PlotterStringBool {
5985    type Error = self::error::ConversionError;
5986    fn try_from(
5987        value: &::std::string::String,
5988    ) -> ::std::result::Result<Self, self::error::ConversionError> {
5989        value.parse()
5990    }
5991}
5992impl ::std::convert::TryFrom<::std::string::String> for PlotterStringBool {
5993    type Error = self::error::ConversionError;
5994    fn try_from(
5995        value: ::std::string::String,
5996    ) -> ::std::result::Result<Self, self::error::ConversionError> {
5997        value.parse()
5998    }
5999}
6000///Horizontal text alignments emitted by the board producers.
6001///
6002/// <details><summary>JSON schema</summary>
6003///
6004/// ```json
6005///{
6006///  "description": "Horizontal text alignments emitted by the board producers.",
6007///  "type": "string",
6008///  "enum": [
6009///    "GR_TEXT_H_ALIGN_LEFT",
6010///    "GR_TEXT_H_ALIGN_CENTER",
6011///    "GR_TEXT_H_ALIGN_RIGHT"
6012///  ]
6013///}
6014/// ```
6015/// </details>
6016#[derive(
6017    ::serde::Deserialize,
6018    ::serde::Serialize,
6019    Clone,
6020    Copy,
6021    Debug,
6022    Eq,
6023    Hash,
6024    Ord,
6025    PartialEq,
6026    PartialOrd,
6027)]
6028pub enum PlotterTextHAlign {
6029    #[serde(rename = "GR_TEXT_H_ALIGN_LEFT")]
6030    GrTextHAlignLeft,
6031    #[serde(rename = "GR_TEXT_H_ALIGN_CENTER")]
6032    GrTextHAlignCenter,
6033    #[serde(rename = "GR_TEXT_H_ALIGN_RIGHT")]
6034    GrTextHAlignRight,
6035}
6036impl ::std::fmt::Display for PlotterTextHAlign {
6037    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
6038        match *self {
6039            Self::GrTextHAlignLeft => f.write_str("GR_TEXT_H_ALIGN_LEFT"),
6040            Self::GrTextHAlignCenter => f.write_str("GR_TEXT_H_ALIGN_CENTER"),
6041            Self::GrTextHAlignRight => f.write_str("GR_TEXT_H_ALIGN_RIGHT"),
6042        }
6043    }
6044}
6045impl ::std::str::FromStr for PlotterTextHAlign {
6046    type Err = self::error::ConversionError;
6047    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
6048        match value {
6049            "GR_TEXT_H_ALIGN_LEFT" => Ok(Self::GrTextHAlignLeft),
6050            "GR_TEXT_H_ALIGN_CENTER" => Ok(Self::GrTextHAlignCenter),
6051            "GR_TEXT_H_ALIGN_RIGHT" => Ok(Self::GrTextHAlignRight),
6052            _ => Err("invalid value".into()),
6053        }
6054    }
6055}
6056impl ::std::convert::TryFrom<&str> for PlotterTextHAlign {
6057    type Error = self::error::ConversionError;
6058    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
6059        value.parse()
6060    }
6061}
6062impl ::std::convert::TryFrom<&::std::string::String> for PlotterTextHAlign {
6063    type Error = self::error::ConversionError;
6064    fn try_from(
6065        value: &::std::string::String,
6066    ) -> ::std::result::Result<Self, self::error::ConversionError> {
6067        value.parse()
6068    }
6069}
6070impl ::std::convert::TryFrom<::std::string::String> for PlotterTextHAlign {
6071    type Error = self::error::ConversionError;
6072    fn try_from(
6073        value: ::std::string::String,
6074    ) -> ::std::result::Result<Self, self::error::ConversionError> {
6075        value.parse()
6076    }
6077}
6078///Coordinate space carried by one typed text render cache.
6079///
6080/// <details><summary>JSON schema</summary>
6081///
6082/// ```json
6083///{
6084///  "description": "Coordinate space carried by one typed text render cache.",
6085///  "type": "string",
6086///  "enum": [
6087///    "board",
6088///    "footprint_local"
6089///  ]
6090///}
6091/// ```
6092/// </details>
6093#[derive(
6094    ::serde::Deserialize,
6095    ::serde::Serialize,
6096    Clone,
6097    Copy,
6098    Debug,
6099    Eq,
6100    Hash,
6101    Ord,
6102    PartialEq,
6103    PartialOrd,
6104)]
6105pub enum PlotterTextRenderCacheCoordinateSpace {
6106    #[serde(rename = "board")]
6107    Board,
6108    #[serde(rename = "footprint_local")]
6109    FootprintLocal,
6110}
6111impl ::std::fmt::Display for PlotterTextRenderCacheCoordinateSpace {
6112    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
6113        match *self {
6114            Self::Board => f.write_str("board"),
6115            Self::FootprintLocal => f.write_str("footprint_local"),
6116        }
6117    }
6118}
6119impl ::std::str::FromStr for PlotterTextRenderCacheCoordinateSpace {
6120    type Err = self::error::ConversionError;
6121    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
6122        match value {
6123            "board" => Ok(Self::Board),
6124            "footprint_local" => Ok(Self::FootprintLocal),
6125            _ => Err("invalid value".into()),
6126        }
6127    }
6128}
6129impl ::std::convert::TryFrom<&str> for PlotterTextRenderCacheCoordinateSpace {
6130    type Error = self::error::ConversionError;
6131    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
6132        value.parse()
6133    }
6134}
6135impl ::std::convert::TryFrom<&::std::string::String> for PlotterTextRenderCacheCoordinateSpace {
6136    type Error = self::error::ConversionError;
6137    fn try_from(
6138        value: &::std::string::String,
6139    ) -> ::std::result::Result<Self, self::error::ConversionError> {
6140        value.parse()
6141    }
6142}
6143impl ::std::convert::TryFrom<::std::string::String> for PlotterTextRenderCacheCoordinateSpace {
6144    type Error = self::error::ConversionError;
6145    fn try_from(
6146        value: ::std::string::String,
6147    ) -> ::std::result::Result<Self, self::error::ConversionError> {
6148        value.parse()
6149    }
6150}
6151///Provenance of one attached text render cache.
6152///
6153/// <details><summary>JSON schema</summary>
6154///
6155/// ```json
6156///{
6157///  "description": "Provenance of one attached text render cache.",
6158///  "type": "string",
6159///  "enum": [
6160///    "existing_file_cache",
6161///    "python_generated_cache",
6162///    "native_generated_cache"
6163///  ]
6164///}
6165/// ```
6166/// </details>
6167#[derive(
6168    ::serde::Deserialize,
6169    ::serde::Serialize,
6170    Clone,
6171    Copy,
6172    Debug,
6173    Eq,
6174    Hash,
6175    Ord,
6176    PartialEq,
6177    PartialOrd,
6178)]
6179pub enum PlotterTextRenderCacheSource {
6180    #[serde(rename = "existing_file_cache")]
6181    ExistingFileCache,
6182    #[serde(rename = "python_generated_cache")]
6183    PythonGeneratedCache,
6184    #[serde(rename = "native_generated_cache")]
6185    NativeGeneratedCache,
6186}
6187impl ::std::fmt::Display for PlotterTextRenderCacheSource {
6188    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
6189        match *self {
6190            Self::ExistingFileCache => f.write_str("existing_file_cache"),
6191            Self::PythonGeneratedCache => f.write_str("python_generated_cache"),
6192            Self::NativeGeneratedCache => f.write_str("native_generated_cache"),
6193        }
6194    }
6195}
6196impl ::std::str::FromStr for PlotterTextRenderCacheSource {
6197    type Err = self::error::ConversionError;
6198    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
6199        match value {
6200            "existing_file_cache" => Ok(Self::ExistingFileCache),
6201            "python_generated_cache" => Ok(Self::PythonGeneratedCache),
6202            "native_generated_cache" => Ok(Self::NativeGeneratedCache),
6203            _ => Err("invalid value".into()),
6204        }
6205    }
6206}
6207impl ::std::convert::TryFrom<&str> for PlotterTextRenderCacheSource {
6208    type Error = self::error::ConversionError;
6209    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
6210        value.parse()
6211    }
6212}
6213impl ::std::convert::TryFrom<&::std::string::String> for PlotterTextRenderCacheSource {
6214    type Error = self::error::ConversionError;
6215    fn try_from(
6216        value: &::std::string::String,
6217    ) -> ::std::result::Result<Self, self::error::ConversionError> {
6218        value.parse()
6219    }
6220}
6221impl ::std::convert::TryFrom<::std::string::String> for PlotterTextRenderCacheSource {
6222    type Error = self::error::ConversionError;
6223    fn try_from(
6224        value: ::std::string::String,
6225    ) -> ::std::result::Result<Self, self::error::ConversionError> {
6226        value.parse()
6227    }
6228}
6229///Vertical text alignments emitted by the board producers.
6230///
6231/// <details><summary>JSON schema</summary>
6232///
6233/// ```json
6234///{
6235///  "description": "Vertical text alignments emitted by the board producers.",
6236///  "type": "string",
6237///  "enum": [
6238///    "GR_TEXT_V_ALIGN_TOP",
6239///    "GR_TEXT_V_ALIGN_CENTER",
6240///    "GR_TEXT_V_ALIGN_BOTTOM"
6241///  ]
6242///}
6243/// ```
6244/// </details>
6245#[derive(
6246    ::serde::Deserialize,
6247    ::serde::Serialize,
6248    Clone,
6249    Copy,
6250    Debug,
6251    Eq,
6252    Hash,
6253    Ord,
6254    PartialEq,
6255    PartialOrd,
6256)]
6257pub enum PlotterTextVAlign {
6258    #[serde(rename = "GR_TEXT_V_ALIGN_TOP")]
6259    GrTextVAlignTop,
6260    #[serde(rename = "GR_TEXT_V_ALIGN_CENTER")]
6261    GrTextVAlignCenter,
6262    #[serde(rename = "GR_TEXT_V_ALIGN_BOTTOM")]
6263    GrTextVAlignBottom,
6264}
6265impl ::std::fmt::Display for PlotterTextVAlign {
6266    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
6267        match *self {
6268            Self::GrTextVAlignTop => f.write_str("GR_TEXT_V_ALIGN_TOP"),
6269            Self::GrTextVAlignCenter => f.write_str("GR_TEXT_V_ALIGN_CENTER"),
6270            Self::GrTextVAlignBottom => f.write_str("GR_TEXT_V_ALIGN_BOTTOM"),
6271        }
6272    }
6273}
6274impl ::std::str::FromStr for PlotterTextVAlign {
6275    type Err = self::error::ConversionError;
6276    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
6277        match value {
6278            "GR_TEXT_V_ALIGN_TOP" => Ok(Self::GrTextVAlignTop),
6279            "GR_TEXT_V_ALIGN_CENTER" => Ok(Self::GrTextVAlignCenter),
6280            "GR_TEXT_V_ALIGN_BOTTOM" => Ok(Self::GrTextVAlignBottom),
6281            _ => Err("invalid value".into()),
6282        }
6283    }
6284}
6285impl ::std::convert::TryFrom<&str> for PlotterTextVAlign {
6286    type Error = self::error::ConversionError;
6287    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
6288        value.parse()
6289    }
6290}
6291impl ::std::convert::TryFrom<&::std::string::String> for PlotterTextVAlign {
6292    type Error = self::error::ConversionError;
6293    fn try_from(
6294        value: &::std::string::String,
6295    ) -> ::std::result::Result<Self, self::error::ConversionError> {
6296        value.parse()
6297    }
6298}
6299impl ::std::convert::TryFrom<::std::string::String> for PlotterTextVAlign {
6300    type Error = self::error::ConversionError;
6301    fn try_from(
6302        value: ::std::string::String,
6303    ) -> ::std::result::Result<Self, self::error::ConversionError> {
6304        value.parse()
6305    }
6306}
6307///Semantic roles allowed on board via flash operations.
6308///
6309/// <details><summary>JSON schema</summary>
6310///
6311/// ```json
6312///{
6313///  "description": "Semantic roles allowed on board via flash operations.",
6314///  "type": "string",
6315///  "enum": [
6316///    "via_aperture",
6317///    "via_mask_opening"
6318///  ]
6319///}
6320/// ```
6321/// </details>
6322#[derive(
6323    ::serde::Deserialize,
6324    ::serde::Serialize,
6325    Clone,
6326    Copy,
6327    Debug,
6328    Eq,
6329    Hash,
6330    Ord,
6331    PartialEq,
6332    PartialOrd,
6333)]
6334pub enum PlotterViaFlashRole {
6335    #[serde(rename = "via_aperture")]
6336    ViaAperture,
6337    #[serde(rename = "via_mask_opening")]
6338    ViaMaskOpening,
6339}
6340impl ::std::fmt::Display for PlotterViaFlashRole {
6341    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
6342        match *self {
6343            Self::ViaAperture => f.write_str("via_aperture"),
6344            Self::ViaMaskOpening => f.write_str("via_mask_opening"),
6345        }
6346    }
6347}
6348impl ::std::str::FromStr for PlotterViaFlashRole {
6349    type Err = self::error::ConversionError;
6350    fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
6351        match value {
6352            "via_aperture" => Ok(Self::ViaAperture),
6353            "via_mask_opening" => Ok(Self::ViaMaskOpening),
6354            _ => Err("invalid value".into()),
6355        }
6356    }
6357}
6358impl ::std::convert::TryFrom<&str> for PlotterViaFlashRole {
6359    type Error = self::error::ConversionError;
6360    fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
6361        value.parse()
6362    }
6363}
6364impl ::std::convert::TryFrom<&::std::string::String> for PlotterViaFlashRole {
6365    type Error = self::error::ConversionError;
6366    fn try_from(
6367        value: &::std::string::String,
6368    ) -> ::std::result::Result<Self, self::error::ConversionError> {
6369        value.parse()
6370    }
6371}
6372impl ::std::convert::TryFrom<::std::string::String> for PlotterViaFlashRole {
6373    type Error = self::error::ConversionError;
6374    fn try_from(
6375        value: ::std::string::String,
6376    ) -> ::std::result::Result<Self, self::error::ConversionError> {
6377        value.parse()
6378    }
6379}
6380///Rectangle with square corners.
6381///
6382/// <details><summary>JSON schema</summary>
6383///
6384/// ```json
6385///{
6386///  "description": "Rectangle with square corners.",
6387///  "type": "object",
6388///  "required": [
6389///    "corner_radius_nm",
6390///    "fill",
6391///    "index",
6392///    "kind",
6393///    "width_nm",
6394///    "x1",
6395///    "x2",
6396///    "y1",
6397///    "y2"
6398///  ],
6399///  "properties": {
6400///    "corner_radius_nm": {
6401///      "$ref": "#/$defs/JavaScriptSafeInteger"
6402///    },
6403///    "fill": {
6404///      "$ref": "#/$defs/PlotterFill"
6405///    },
6406///    "fill_color": {
6407///      "type": "string"
6408///    },
6409///    "index": {
6410///      "type": "integer",
6411///      "maximum": 4294967295.0,
6412///      "minimum": 0.0
6413///    },
6414///    "kind": {
6415///      "type": "string",
6416///      "const": "Rect"
6417///    },
6418///    "layer": {
6419///      "type": "string"
6420///    },
6421///    "line_style": {
6422///      "$ref": "#/$defs/PlotterLineStyle"
6423///    },
6424///    "stroke_color": {
6425///      "type": "string"
6426///    },
6427///    "width_nm": {
6428///      "$ref": "#/$defs/JavaScriptSafeInteger"
6429///    },
6430///    "x1": {
6431///      "$ref": "#/$defs/JavaScriptSafeInteger"
6432///    },
6433///    "x2": {
6434///      "$ref": "#/$defs/JavaScriptSafeInteger"
6435///    },
6436///    "y1": {
6437///      "$ref": "#/$defs/JavaScriptSafeInteger"
6438///    },
6439///    "y2": {
6440///      "$ref": "#/$defs/JavaScriptSafeInteger"
6441///    }
6442///  },
6443///  "additionalProperties": false
6444///}
6445/// ```
6446/// </details>
6447#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
6448#[serde(deny_unknown_fields)]
6449pub struct RectOperation {
6450    pub corner_radius_nm: crate::JavaScriptSafeInteger,
6451    pub fill: PlotterFill,
6452    #[serde(
6453        default,
6454        deserialize_with = "crate::deserialize_present_nonnull",
6455        skip_serializing_if = "::std::option::Option::is_none"
6456    )]
6457    pub fill_color: ::std::option::Option<::std::string::String>,
6458    pub index: u32,
6459    #[serde(deserialize_with = "crate::deserialize_rect_kind")]
6460    pub kind: ::std::string::String,
6461    #[serde(
6462        default,
6463        deserialize_with = "crate::deserialize_present_nonnull",
6464        skip_serializing_if = "::std::option::Option::is_none"
6465    )]
6466    pub layer: ::std::option::Option<::std::string::String>,
6467    #[serde(
6468        default,
6469        deserialize_with = "crate::deserialize_present_nonnull",
6470        skip_serializing_if = "::std::option::Option::is_none"
6471    )]
6472    pub line_style: ::std::option::Option<PlotterLineStyle>,
6473    #[serde(
6474        default,
6475        deserialize_with = "crate::deserialize_present_nonnull",
6476        skip_serializing_if = "::std::option::Option::is_none"
6477    )]
6478    pub stroke_color: ::std::option::Option<::std::string::String>,
6479    pub width_nm: crate::JavaScriptSafeInteger,
6480    pub x1: crate::JavaScriptSafeInteger,
6481    pub x2: crate::JavaScriptSafeInteger,
6482    pub y1: crate::JavaScriptSafeInteger,
6483    pub y2: crate::JavaScriptSafeInteger,
6484}
6485///Board table grid/border segments followed by optional faced cell text.
6486///
6487/// <details><summary>JSON schema</summary>
6488///
6489/// ```json
6490///{
6491///  "description": "Board table grid/border segments followed by optional faced cell text.",
6492///  "type": "object",
6493///  "required": [
6494///    "cell_count",
6495///    "kind",
6496///    "layers",
6497///    "object_id",
6498///    "operation_count",
6499///    "operations",
6500///    "uuid"
6501///  ],
6502///  "properties": {
6503///    "cell_count": {
6504///      "type": "integer",
6505///      "maximum": 4294967295.0,
6506///      "minimum": 0.0
6507///    },
6508///    "kind": {
6509///      "type": "string",
6510///      "const": "table"
6511///    },
6512///    "layers": {
6513///      "type": "array",
6514///      "items": {
6515///        "type": "string"
6516///      }
6517///    },
6518///    "object_id": {
6519///      "type": "string",
6520///      "const": "table"
6521///    },
6522///    "operation_count": {
6523///      "type": "integer",
6524///      "maximum": 4294967295.0,
6525///      "minimum": 0.0
6526///    },
6527///    "operations": {
6528///      "type": "array",
6529///      "items": {
6530///        "$ref": "#/$defs/PlotterOperation"
6531///      }
6532///    },
6533///    "uuid": {
6534///      "type": "string"
6535///    }
6536///  },
6537///  "additionalProperties": false
6538///}
6539/// ```
6540/// </details>
6541#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
6542#[serde(deny_unknown_fields)]
6543pub struct TablePlotRecord {
6544    pub cell_count: u32,
6545    pub kind: ::std::string::String,
6546    pub layers: ::std::vec::Vec<::std::string::String>,
6547    pub object_id: ::std::string::String,
6548    pub operation_count: u32,
6549    pub operations: ::std::vec::Vec<PlotterOperation>,
6550    pub uuid: ::std::string::String,
6551}
6552/**Stroke or cached text operation. Boolean marker keys (`mirror`,
6553`text_as_polygons`, `polyline_per_segment`, `knockout`) are present-only
6554-when-true, matching the established Python emitter. Render-cache keys
6555appear together when an authored cache resolves; `render_cache_polygons`
6556carries the exterior rings in nanometres.*/
6557///
6558/// <details><summary>JSON schema</summary>
6559///
6560/// ```json
6561///{
6562///  "description": "Stroke or cached text operation. Boolean marker keys (`mirror`,\n`text_as_polygons`, `polyline_per_segment`, `knockout`) are present-only\n-when-true, matching the established Python emitter. Render-cache keys\nappear together when an authored cache resolves; `render_cache_polygons`\ncarries the exterior rings in nanometres.",
6563///  "type": "object",
6564///  "required": [
6565///    "bold",
6566///    "color",
6567///    "font_face",
6568///    "h_align",
6569///    "index",
6570///    "italic",
6571///    "kind",
6572///    "multiline",
6573///    "orient_deg",
6574///    "pen_width_nm",
6575///    "size_x_nm",
6576///    "size_y_nm",
6577///    "text",
6578///    "v_align",
6579///    "x",
6580///    "y"
6581///  ],
6582///  "properties": {
6583///    "bold": {
6584///      "type": "boolean"
6585///    },
6586///    "color": {
6587///      "type": "string"
6588///    },
6589///    "context": {
6590///      "$ref": "#/$defs/PlotterOperationContext"
6591///    },
6592///    "font_face": {
6593///      "type": "string"
6594///    },
6595///    "h_align": {
6596///      "$ref": "#/$defs/PlotterTextHAlign"
6597///    },
6598///    "index": {
6599///      "type": "integer",
6600///      "maximum": 4294967295.0,
6601///      "minimum": 0.0
6602///    },
6603///    "italic": {
6604///      "type": "boolean"
6605///    },
6606///    "kind": {
6607///      "type": "string",
6608///      "const": "Text"
6609///    },
6610///    "knockout": {
6611///      "type": "boolean"
6612///    },
6613///    "layer": {
6614///      "type": "string"
6615///    },
6616///    "mirror": {
6617///      "type": "boolean"
6618///    },
6619///    "multiline": {
6620///      "type": "boolean"
6621///    },
6622///    "orient_deg": {
6623///      "type": "number"
6624///    },
6625///    "pen_width_nm": {
6626///      "$ref": "#/$defs/JavaScriptSafeInteger"
6627///    },
6628///    "polyline_per_segment": {
6629///      "type": "boolean"
6630///    },
6631///    "render_cache": {
6632///      "$ref": "#/$defs/TextRenderCache"
6633///    },
6634///    "render_cache_exact": {
6635///      "type": "boolean"
6636///    },
6637///    "render_cache_polygons": {
6638///      "type": "array",
6639///      "items": {
6640///        "type": "array",
6641///        "items": {
6642///          "$ref": "#/$defs/PlotterPoint"
6643///        }
6644///      }
6645///    },
6646///    "render_cache_source": {
6647///      "$ref": "#/$defs/PlotterTextRenderCacheSource"
6648///    },
6649///    "size_x_nm": {
6650///      "$ref": "#/$defs/JavaScriptSafeInteger"
6651///    },
6652///    "size_y_nm": {
6653///      "$ref": "#/$defs/JavaScriptSafeInteger"
6654///    },
6655///    "text": {
6656///      "type": "string"
6657///    },
6658///    "text_as_polygons": {
6659///      "type": "boolean"
6660///    },
6661///    "v_align": {
6662///      "$ref": "#/$defs/PlotterTextVAlign"
6663///    },
6664///    "x": {
6665///      "$ref": "#/$defs/JavaScriptSafeInteger"
6666///    },
6667///    "y": {
6668///      "$ref": "#/$defs/JavaScriptSafeInteger"
6669///    }
6670///  },
6671///  "additionalProperties": false
6672///}
6673/// ```
6674/// </details>
6675#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
6676#[serde(deny_unknown_fields)]
6677pub struct TextOperation {
6678    pub bold: bool,
6679    pub color: ::std::string::String,
6680    #[serde(
6681        default,
6682        deserialize_with = "crate::deserialize_present_nonnull",
6683        skip_serializing_if = "::std::option::Option::is_none"
6684    )]
6685    pub context: ::std::option::Option<PlotterOperationContext>,
6686    pub font_face: ::std::string::String,
6687    pub h_align: PlotterTextHAlign,
6688    pub index: u32,
6689    pub italic: bool,
6690    #[serde(deserialize_with = "crate::deserialize_text_kind")]
6691    pub kind: ::std::string::String,
6692    #[serde(
6693        default,
6694        deserialize_with = "crate::deserialize_present_nonnull",
6695        skip_serializing_if = "::std::option::Option::is_none"
6696    )]
6697    pub knockout: ::std::option::Option<bool>,
6698    #[serde(
6699        default,
6700        deserialize_with = "crate::deserialize_present_nonnull",
6701        skip_serializing_if = "::std::option::Option::is_none"
6702    )]
6703    pub layer: ::std::option::Option<::std::string::String>,
6704    #[serde(
6705        default,
6706        deserialize_with = "crate::deserialize_present_nonnull",
6707        skip_serializing_if = "::std::option::Option::is_none"
6708    )]
6709    pub mirror: ::std::option::Option<bool>,
6710    pub multiline: bool,
6711    pub orient_deg: f64,
6712    pub pen_width_nm: crate::JavaScriptSafeInteger,
6713    #[serde(
6714        default,
6715        deserialize_with = "crate::deserialize_present_nonnull",
6716        skip_serializing_if = "::std::option::Option::is_none"
6717    )]
6718    pub polyline_per_segment: ::std::option::Option<bool>,
6719    #[serde(
6720        default,
6721        deserialize_with = "crate::deserialize_present_nonnull",
6722        skip_serializing_if = "::std::option::Option::is_none"
6723    )]
6724    pub render_cache: ::std::option::Option<TextRenderCache>,
6725    #[serde(
6726        default,
6727        deserialize_with = "crate::deserialize_present_nonnull",
6728        skip_serializing_if = "::std::option::Option::is_none"
6729    )]
6730    pub render_cache_exact: ::std::option::Option<bool>,
6731    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
6732    pub render_cache_polygons: ::std::vec::Vec<::std::vec::Vec<PlotterPoint>>,
6733    #[serde(
6734        default,
6735        deserialize_with = "crate::deserialize_present_nonnull",
6736        skip_serializing_if = "::std::option::Option::is_none"
6737    )]
6738    pub render_cache_source: ::std::option::Option<PlotterTextRenderCacheSource>,
6739    pub size_x_nm: crate::JavaScriptSafeInteger,
6740    pub size_y_nm: crate::JavaScriptSafeInteger,
6741    pub text: ::std::string::String,
6742    #[serde(
6743        default,
6744        deserialize_with = "crate::deserialize_present_nonnull",
6745        skip_serializing_if = "::std::option::Option::is_none"
6746    )]
6747    pub text_as_polygons: ::std::option::Option<bool>,
6748    pub v_align: PlotterTextVAlign,
6749    pub x: crate::JavaScriptSafeInteger,
6750    pub y: crate::JavaScriptSafeInteger,
6751}
6752/**Typed render cache from an authored `(render_cache ...)` form, the Python
6753resolver, or the deterministic native hinted outline engine. `knockout` appears when the
6754knockout background restructure replaced the polygons.*/
6755///
6756/// <details><summary>JSON schema</summary>
6757///
6758/// ```json
6759///{
6760///  "description": "Typed render cache from an authored `(render_cache ...)` form, the Python\nresolver, or the deterministic native hinted outline engine. `knockout` appears when the\nknockout background restructure replaced the polygons.",
6761///  "type": "object",
6762///  "required": [
6763///    "angle",
6764///    "coordinate_space",
6765///    "exact",
6766///    "polygons",
6767///    "schema",
6768///    "source",
6769///    "text",
6770///    "unit"
6771///  ],
6772///  "properties": {
6773///    "angle": {
6774///      "type": "number"
6775///    },
6776///    "coordinate_space": {
6777///      "$ref": "#/$defs/PlotterTextRenderCacheCoordinateSpace"
6778///    },
6779///    "exact": {
6780///      "type": "boolean"
6781///    },
6782///    "knockout": {
6783///      "type": "boolean"
6784///    },
6785///    "polygons": {
6786///      "type": "array",
6787///      "items": {
6788///        "$ref": "#/$defs/TextRenderCachePolygon"
6789///      }
6790///    },
6791///    "schema": {
6792///      "type": "string",
6793///      "const": "kicad.render_cache.v1"
6794///    },
6795///    "source": {
6796///      "$ref": "#/$defs/PlotterTextRenderCacheSource"
6797///    },
6798///    "text": {
6799///      "type": "string"
6800///    },
6801///    "unit": {
6802///      "type": "string",
6803///      "const": "nm"
6804///    }
6805///  },
6806///  "additionalProperties": false
6807///}
6808/// ```
6809/// </details>
6810#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
6811#[serde(deny_unknown_fields)]
6812pub struct TextRenderCache {
6813    pub angle: f64,
6814    pub coordinate_space: PlotterTextRenderCacheCoordinateSpace,
6815    pub exact: bool,
6816    #[serde(
6817        default,
6818        deserialize_with = "crate::deserialize_present_nonnull",
6819        skip_serializing_if = "::std::option::Option::is_none"
6820    )]
6821    pub knockout: ::std::option::Option<bool>,
6822    pub polygons: ::std::vec::Vec<TextRenderCachePolygon>,
6823    pub schema: ::std::string::String,
6824    pub source: PlotterTextRenderCacheSource,
6825    pub text: ::std::string::String,
6826    pub unit: ::std::string::String,
6827}
6828///One render-cache polygon as ordered contours, exterior ring first.
6829///
6830/// <details><summary>JSON schema</summary>
6831///
6832/// ```json
6833///{
6834///  "description": "One render-cache polygon as ordered contours, exterior ring first.",
6835///  "type": "object",
6836///  "required": [
6837///    "contours"
6838///  ],
6839///  "properties": {
6840///    "contours": {
6841///      "type": "array",
6842///      "items": {
6843///        "type": "array",
6844///        "items": {
6845///          "$ref": "#/$defs/PlotterPoint"
6846///        }
6847///      }
6848///    }
6849///  },
6850///  "additionalProperties": false
6851///}
6852/// ```
6853/// </details>
6854#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
6855#[serde(deny_unknown_fields)]
6856pub struct TextRenderCachePolygon {
6857    pub contours: ::std::vec::Vec<::std::vec::Vec<PlotterPoint>>,
6858}
6859/**Solid or decomposed segment shared by PCB, footprint, and drill producers.
6860Graphic state requires only layer. Drill state requires role plus layers;
6861NPTH drill state additionally requires all mask and pad-size hints. The
6862generated semantic validator enforces these mutually exclusive states.*/
6863///
6864/// <details><summary>JSON schema</summary>
6865///
6866/// ```json
6867///{
6868///  "description": "Solid or decomposed segment shared by PCB, footprint, and drill producers.\nGraphic state requires only layer. Drill state requires role plus layers;\nNPTH drill state additionally requires all mask and pad-size hints. The\ngenerated semantic validator enforces these mutually exclusive states.",
6869///  "type": "object",
6870///  "required": [
6871///    "end_x",
6872///    "end_y",
6873///    "index",
6874///    "kind",
6875///    "start_x",
6876///    "start_y",
6877///    "width_nm"
6878///  ],
6879///  "properties": {
6880///    "end_x": {
6881///      "$ref": "#/$defs/JavaScriptSafeInteger"
6882///    },
6883///    "end_y": {
6884///      "$ref": "#/$defs/JavaScriptSafeInteger"
6885///    },
6886///    "index": {
6887///      "type": "integer",
6888///      "maximum": 4294967295.0,
6889///      "minimum": 0.0
6890///    },
6891///    "kind": {
6892///      "type": "string",
6893///      "const": "ThickSegment"
6894///    },
6895///    "layer": {
6896///      "type": "string"
6897///    },
6898///    "layers": {
6899///      "type": "array",
6900///      "items": {
6901///        "type": "string"
6902///      }
6903///    },
6904///    "mask_margin_nm": {
6905///      "$ref": "#/$defs/JavaScriptSafeInteger"
6906///    },
6907///    "pad_size_x_nm": {
6908///      "$ref": "#/$defs/JavaScriptSafeInteger"
6909///    },
6910///    "pad_size_y_nm": {
6911///      "$ref": "#/$defs/JavaScriptSafeInteger"
6912///    },
6913///    "role": {
6914///      "$ref": "#/$defs/PlotterDrillRole"
6915///    },
6916///    "start_x": {
6917///      "$ref": "#/$defs/JavaScriptSafeInteger"
6918///    },
6919///    "start_y": {
6920///      "$ref": "#/$defs/JavaScriptSafeInteger"
6921///    },
6922///    "stroke_color": {
6923///      "type": "string"
6924///    },
6925///    "width_nm": {
6926///      "$ref": "#/$defs/JavaScriptSafeInteger"
6927///    }
6928///  },
6929///  "additionalProperties": false
6930///}
6931/// ```
6932/// </details>
6933#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
6934#[serde(deny_unknown_fields)]
6935pub struct ThickSegmentOperation {
6936    pub end_x: crate::JavaScriptSafeInteger,
6937    pub end_y: crate::JavaScriptSafeInteger,
6938    pub index: u32,
6939    #[serde(deserialize_with = "crate::deserialize_thick_segment_kind")]
6940    pub kind: ::std::string::String,
6941    #[serde(
6942        default,
6943        deserialize_with = "crate::deserialize_present_nonnull",
6944        skip_serializing_if = "::std::option::Option::is_none"
6945    )]
6946    pub layer: ::std::option::Option<::std::string::String>,
6947    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
6948    pub layers: ::std::vec::Vec<::std::string::String>,
6949    #[serde(
6950        default,
6951        deserialize_with = "crate::deserialize_present_nonnull",
6952        skip_serializing_if = "::std::option::Option::is_none"
6953    )]
6954    pub mask_margin_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
6955    #[serde(
6956        default,
6957        deserialize_with = "crate::deserialize_present_nonnull",
6958        skip_serializing_if = "::std::option::Option::is_none"
6959    )]
6960    pub pad_size_x_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
6961    #[serde(
6962        default,
6963        deserialize_with = "crate::deserialize_present_nonnull",
6964        skip_serializing_if = "::std::option::Option::is_none"
6965    )]
6966    pub pad_size_y_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
6967    #[serde(
6968        default,
6969        deserialize_with = "crate::deserialize_present_nonnull",
6970        skip_serializing_if = "::std::option::Option::is_none"
6971    )]
6972    pub role: ::std::option::Option<PlotterDrillRole>,
6973    pub start_x: crate::JavaScriptSafeInteger,
6974    pub start_y: crate::JavaScriptSafeInteger,
6975    #[serde(
6976        default,
6977        deserialize_with = "crate::deserialize_present_nonnull",
6978        skip_serializing_if = "::std::option::Option::is_none"
6979    )]
6980    pub stroke_color: ::std::option::Option<::std::string::String>,
6981    pub width_nm: crate::JavaScriptSafeInteger,
6982}
6983///One board track arc record with its net attribution.
6984///
6985/// <details><summary>JSON schema</summary>
6986///
6987/// ```json
6988///{
6989///  "description": "One board track arc record with its net attribution.",
6990///  "type": "object",
6991///  "required": [
6992///    "kind",
6993///    "layer",
6994///    "object_id",
6995///    "operation_count",
6996///    "operations",
6997///    "uuid"
6998///  ],
6999///  "properties": {
7000///    "kind": {
7001///      "type": "string",
7002///      "const": "track_arc"
7003///    },
7004///    "layer": {
7005///      "type": "string"
7006///    },
7007///    "net_class": {
7008///      "type": "string"
7009///    },
7010///    "net_classes": {
7011///      "type": "array",
7012///      "items": {
7013///        "type": "string"
7014///      }
7015///    },
7016///    "net_id": {
7017///      "$ref": "#/$defs/JavaScriptSafeInteger"
7018///    },
7019///    "net_name": {
7020///      "type": "string"
7021///    },
7022///    "object_id": {
7023///      "type": "string"
7024///    },
7025///    "operation_count": {
7026///      "type": "integer",
7027///      "maximum": 4294967295.0,
7028///      "minimum": 0.0
7029///    },
7030///    "operations": {
7031///      "type": "array",
7032///      "items": {
7033///        "$ref": "#/$defs/PlotterOperation"
7034///      }
7035///    },
7036///    "uuid": {
7037///      "type": "string"
7038///    }
7039///  },
7040///  "additionalProperties": false
7041///}
7042/// ```
7043/// </details>
7044#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
7045#[serde(deny_unknown_fields)]
7046pub struct TrackArcPlotRecord {
7047    pub kind: ::std::string::String,
7048    pub layer: ::std::string::String,
7049    #[serde(
7050        default,
7051        deserialize_with = "crate::deserialize_present_nonnull",
7052        skip_serializing_if = "::std::option::Option::is_none"
7053    )]
7054    pub net_class: ::std::option::Option<::std::string::String>,
7055    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
7056    pub net_classes: ::std::vec::Vec<::std::string::String>,
7057    #[serde(
7058        default,
7059        deserialize_with = "crate::deserialize_present_nonnull",
7060        skip_serializing_if = "::std::option::Option::is_none"
7061    )]
7062    pub net_id: ::std::option::Option<crate::JavaScriptSafeInteger>,
7063    #[serde(
7064        default,
7065        deserialize_with = "crate::deserialize_present_nonnull",
7066        skip_serializing_if = "::std::option::Option::is_none"
7067    )]
7068    pub net_name: ::std::option::Option<::std::string::String>,
7069    pub object_id: ::std::string::String,
7070    pub operation_count: u32,
7071    pub operations: ::std::vec::Vec<PlotterOperation>,
7072    pub uuid: ::std::string::String,
7073}
7074///One board track segment record with its net attribution.
7075///
7076/// <details><summary>JSON schema</summary>
7077///
7078/// ```json
7079///{
7080///  "description": "One board track segment record with its net attribution.",
7081///  "type": "object",
7082///  "required": [
7083///    "kind",
7084///    "layer",
7085///    "locked",
7086///    "object_id",
7087///    "operation_count",
7088///    "operations",
7089///    "uuid"
7090///  ],
7091///  "properties": {
7092///    "kind": {
7093///      "type": "string",
7094///      "const": "segment"
7095///    },
7096///    "layer": {
7097///      "type": "string"
7098///    },
7099///    "locked": {
7100///      "type": "boolean"
7101///    },
7102///    "net_class": {
7103///      "type": "string"
7104///    },
7105///    "net_classes": {
7106///      "type": "array",
7107///      "items": {
7108///        "type": "string"
7109///      }
7110///    },
7111///    "net_id": {
7112///      "$ref": "#/$defs/JavaScriptSafeInteger"
7113///    },
7114///    "net_name": {
7115///      "type": "string"
7116///    },
7117///    "object_id": {
7118///      "type": "string"
7119///    },
7120///    "operation_count": {
7121///      "type": "integer",
7122///      "maximum": 4294967295.0,
7123///      "minimum": 0.0
7124///    },
7125///    "operations": {
7126///      "type": "array",
7127///      "items": {
7128///        "$ref": "#/$defs/PlotterOperation"
7129///      }
7130///    },
7131///    "uuid": {
7132///      "type": "string"
7133///    }
7134///  },
7135///  "additionalProperties": false
7136///}
7137/// ```
7138/// </details>
7139#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
7140#[serde(deny_unknown_fields)]
7141pub struct TrackSegmentPlotRecord {
7142    pub kind: ::std::string::String,
7143    pub layer: ::std::string::String,
7144    pub locked: bool,
7145    #[serde(
7146        default,
7147        deserialize_with = "crate::deserialize_present_nonnull",
7148        skip_serializing_if = "::std::option::Option::is_none"
7149    )]
7150    pub net_class: ::std::option::Option<::std::string::String>,
7151    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
7152    pub net_classes: ::std::vec::Vec<::std::string::String>,
7153    #[serde(
7154        default,
7155        deserialize_with = "crate::deserialize_present_nonnull",
7156        skip_serializing_if = "::std::option::Option::is_none"
7157    )]
7158    pub net_id: ::std::option::Option<crate::JavaScriptSafeInteger>,
7159    #[serde(
7160        default,
7161        deserialize_with = "crate::deserialize_present_nonnull",
7162        skip_serializing_if = "::std::option::Option::is_none"
7163    )]
7164    pub net_name: ::std::option::Option<::std::string::String>,
7165    pub object_id: ::std::string::String,
7166    pub operation_count: u32,
7167    pub operations: ::std::vec::Vec<PlotterOperation>,
7168    pub uuid: ::std::string::String,
7169}
7170/**One board via record: optional resolved copper aperture, mandatory physical
7171drill, and per-side mask opening/drill pairs when tenting explicitly exposes
7172that side. A fully removed annulus is represented by the drill alone.
7173IPC-4761 fabrication metadata mirrors the established stringified booleans.*/
7174///
7175/// <details><summary>JSON schema</summary>
7176///
7177/// ```json
7178///{
7179///  "description": "One board via record: optional resolved copper aperture, mandatory physical\ndrill, and per-side mask opening/drill pairs when tenting explicitly exposes\nthat side. A fully removed annulus is represented by the drill alone.\nIPC-4761 fabrication metadata mirrors the established stringified booleans.",
7180///  "type": "object",
7181///  "required": [
7182///    "drill",
7183///    "hole_kind",
7184///    "hole_plating",
7185///    "hole_render",
7186///    "kind",
7187///    "layers",
7188///    "object_id",
7189///    "operation_count",
7190///    "operations",
7191///    "size",
7192///    "uuid",
7193///    "via_type"
7194///  ],
7195///  "properties": {
7196///    "drill": {
7197///      "type": "number"
7198///    },
7199///    "hole_kind": {
7200///      "type": "string",
7201///      "const": "round"
7202///    },
7203///    "hole_plating": {
7204///      "type": "string",
7205///      "const": "plated"
7206///    },
7207///    "hole_render": {
7208///      "type": "string",
7209///      "const": "drill"
7210///    },
7211///    "ipc4761_capping": {
7212///      "$ref": "#/$defs/PlotterStringBool"
7213///    },
7214///    "ipc4761_covering_back": {
7215///      "$ref": "#/$defs/PlotterStringBool"
7216///    },
7217///    "ipc4761_covering_front": {
7218///      "$ref": "#/$defs/PlotterStringBool"
7219///    },
7220///    "ipc4761_filling": {
7221///      "$ref": "#/$defs/PlotterStringBool"
7222///    },
7223///    "ipc4761_metadata": {
7224///      "type": "string",
7225///      "const": "true"
7226///    },
7227///    "ipc4761_plugging_back": {
7228///      "$ref": "#/$defs/PlotterStringBool"
7229///    },
7230///    "ipc4761_plugging_front": {
7231///      "$ref": "#/$defs/PlotterStringBool"
7232///    },
7233///    "ipc4761_tenting_back": {
7234///      "$ref": "#/$defs/PlotterStringBool"
7235///    },
7236///    "ipc4761_tenting_front": {
7237///      "$ref": "#/$defs/PlotterStringBool"
7238///    },
7239///    "kind": {
7240///      "type": "string",
7241///      "const": "via"
7242///    },
7243///    "layers": {
7244///      "type": "array",
7245///      "items": {
7246///        "type": "string"
7247///      }
7248///    },
7249///    "net_class": {
7250///      "type": "string"
7251///    },
7252///    "net_classes": {
7253///      "type": "array",
7254///      "items": {
7255///        "type": "string"
7256///      }
7257///    },
7258///    "net_id": {
7259///      "$ref": "#/$defs/JavaScriptSafeInteger"
7260///    },
7261///    "net_name": {
7262///      "type": "string"
7263///    },
7264///    "object_id": {
7265///      "type": "string"
7266///    },
7267///    "operation_count": {
7268///      "type": "integer",
7269///      "maximum": 4294967295.0,
7270///      "minimum": 0.0
7271///    },
7272///    "operations": {
7273///      "type": "array",
7274///      "items": {
7275///        "$ref": "#/$defs/PlotterOperation"
7276///      }
7277///    },
7278///    "size": {
7279///      "type": "number"
7280///    },
7281///    "uuid": {
7282///      "type": "string"
7283///    },
7284///    "via_type": {
7285///      "$ref": "#/$defs/BoardViaType"
7286///    }
7287///  },
7288///  "additionalProperties": false
7289///}
7290/// ```
7291/// </details>
7292#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
7293#[serde(deny_unknown_fields)]
7294pub struct ViaPlotRecord {
7295    pub drill: f64,
7296    pub hole_kind: ::std::string::String,
7297    pub hole_plating: ::std::string::String,
7298    pub hole_render: ::std::string::String,
7299    #[serde(
7300        default,
7301        deserialize_with = "crate::deserialize_present_nonnull",
7302        skip_serializing_if = "::std::option::Option::is_none"
7303    )]
7304    pub ipc4761_capping: ::std::option::Option<PlotterStringBool>,
7305    #[serde(
7306        default,
7307        deserialize_with = "crate::deserialize_present_nonnull",
7308        skip_serializing_if = "::std::option::Option::is_none"
7309    )]
7310    pub ipc4761_covering_back: ::std::option::Option<PlotterStringBool>,
7311    #[serde(
7312        default,
7313        deserialize_with = "crate::deserialize_present_nonnull",
7314        skip_serializing_if = "::std::option::Option::is_none"
7315    )]
7316    pub ipc4761_covering_front: ::std::option::Option<PlotterStringBool>,
7317    #[serde(
7318        default,
7319        deserialize_with = "crate::deserialize_present_nonnull",
7320        skip_serializing_if = "::std::option::Option::is_none"
7321    )]
7322    pub ipc4761_filling: ::std::option::Option<PlotterStringBool>,
7323    #[serde(
7324        default,
7325        deserialize_with = "crate::deserialize_present_nonnull",
7326        skip_serializing_if = "::std::option::Option::is_none"
7327    )]
7328    pub ipc4761_metadata: ::std::option::Option<::std::string::String>,
7329    #[serde(
7330        default,
7331        deserialize_with = "crate::deserialize_present_nonnull",
7332        skip_serializing_if = "::std::option::Option::is_none"
7333    )]
7334    pub ipc4761_plugging_back: ::std::option::Option<PlotterStringBool>,
7335    #[serde(
7336        default,
7337        deserialize_with = "crate::deserialize_present_nonnull",
7338        skip_serializing_if = "::std::option::Option::is_none"
7339    )]
7340    pub ipc4761_plugging_front: ::std::option::Option<PlotterStringBool>,
7341    #[serde(
7342        default,
7343        deserialize_with = "crate::deserialize_present_nonnull",
7344        skip_serializing_if = "::std::option::Option::is_none"
7345    )]
7346    pub ipc4761_tenting_back: ::std::option::Option<PlotterStringBool>,
7347    #[serde(
7348        default,
7349        deserialize_with = "crate::deserialize_present_nonnull",
7350        skip_serializing_if = "::std::option::Option::is_none"
7351    )]
7352    pub ipc4761_tenting_front: ::std::option::Option<PlotterStringBool>,
7353    pub kind: ::std::string::String,
7354    pub layers: ::std::vec::Vec<::std::string::String>,
7355    #[serde(
7356        default,
7357        deserialize_with = "crate::deserialize_present_nonnull",
7358        skip_serializing_if = "::std::option::Option::is_none"
7359    )]
7360    pub net_class: ::std::option::Option<::std::string::String>,
7361    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
7362    pub net_classes: ::std::vec::Vec<::std::string::String>,
7363    #[serde(
7364        default,
7365        deserialize_with = "crate::deserialize_present_nonnull",
7366        skip_serializing_if = "::std::option::Option::is_none"
7367    )]
7368    pub net_id: ::std::option::Option<crate::JavaScriptSafeInteger>,
7369    #[serde(
7370        default,
7371        deserialize_with = "crate::deserialize_present_nonnull",
7372        skip_serializing_if = "::std::option::Option::is_none"
7373    )]
7374    pub net_name: ::std::option::Option<::std::string::String>,
7375    pub object_id: ::std::string::String,
7376    pub operation_count: u32,
7377    pub operations: ::std::vec::Vec<PlotterOperation>,
7378    pub size: f64,
7379    pub uuid: ::std::string::String,
7380    pub via_type: BoardViaType,
7381}
7382/**One zone fill record bundling every `filled_polygon` ring. The parallel
7383`fill_layers`/`fill_island` arrays annotate the rings so consumers can
7384split or colour-key without re-walking the source zone.*/
7385///
7386/// <details><summary>JSON schema</summary>
7387///
7388/// ```json
7389///{
7390///  "description": "One zone fill record bundling every `filled_polygon` ring. The parallel\n`fill_layers`/`fill_island` arrays annotate the rings so consumers can\nsplit or colour-key without re-walking the source zone.",
7391///  "type": "object",
7392///  "required": [
7393///    "fill_island",
7394///    "fill_layers",
7395///    "kind",
7396///    "layers",
7397///    "object_id",
7398///    "operation_count",
7399///    "operations",
7400///    "uuid"
7401///  ],
7402///  "properties": {
7403///    "fill_island": {
7404///      "type": "array",
7405///      "items": {
7406///        "type": "boolean"
7407///      }
7408///    },
7409///    "fill_layers": {
7410///      "type": "array",
7411///      "items": {
7412///        "type": "string"
7413///      }
7414///    },
7415///    "kind": {
7416///      "type": "string",
7417///      "const": "zone_fill"
7418///    },
7419///    "layers": {
7420///      "type": "array",
7421///      "items": {
7422///        "type": "string"
7423///      }
7424///    },
7425///    "net_class": {
7426///      "type": "string"
7427///    },
7428///    "net_classes": {
7429///      "type": "array",
7430///      "items": {
7431///        "type": "string"
7432///      }
7433///    },
7434///    "net_id": {
7435///      "$ref": "#/$defs/JavaScriptSafeInteger"
7436///    },
7437///    "net_name": {
7438///      "type": "string"
7439///    },
7440///    "object_id": {
7441///      "type": "string"
7442///    },
7443///    "operation_count": {
7444///      "type": "integer",
7445///      "maximum": 4294967295.0,
7446///      "minimum": 0.0
7447///    },
7448///    "operations": {
7449///      "type": "array",
7450///      "items": {
7451///        "$ref": "#/$defs/PlotterOperation"
7452///      }
7453///    },
7454///    "uuid": {
7455///      "type": "string"
7456///    }
7457///  },
7458///  "additionalProperties": false
7459///}
7460/// ```
7461/// </details>
7462#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
7463#[serde(deny_unknown_fields)]
7464pub struct ZoneFillPlotRecord {
7465    pub fill_island: ::std::vec::Vec<bool>,
7466    pub fill_layers: ::std::vec::Vec<::std::string::String>,
7467    pub kind: ::std::string::String,
7468    pub layers: ::std::vec::Vec<::std::string::String>,
7469    #[serde(
7470        default,
7471        deserialize_with = "crate::deserialize_present_nonnull",
7472        skip_serializing_if = "::std::option::Option::is_none"
7473    )]
7474    pub net_class: ::std::option::Option<::std::string::String>,
7475    #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
7476    pub net_classes: ::std::vec::Vec<::std::string::String>,
7477    #[serde(
7478        default,
7479        deserialize_with = "crate::deserialize_present_nonnull",
7480        skip_serializing_if = "::std::option::Option::is_none"
7481    )]
7482    pub net_id: ::std::option::Option<crate::JavaScriptSafeInteger>,
7483    #[serde(
7484        default,
7485        deserialize_with = "crate::deserialize_present_nonnull",
7486        skip_serializing_if = "::std::option::Option::is_none"
7487    )]
7488    pub net_name: ::std::option::Option<::std::string::String>,
7489    pub object_id: ::std::string::String,
7490    pub operation_count: u32,
7491    pub operations: ::std::vec::Vec<PlotterOperation>,
7492    pub uuid: ::std::string::String,
7493}