kicad_monkey_contracts/generated/symbol_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/**Circle shared by graphical and drill producers. Graphic state requires only
249layer. Drill state requires role plus layers; NPTH state additionally
250requires all mask and pad-size hints. The generated semantic validator
251enforces these mutually exclusive states.*/
252///
253/// <details><summary>JSON schema</summary>
254///
255/// ```json
256///{
257/// "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.",
258/// "type": "object",
259/// "required": [
260/// "cx",
261/// "cy",
262/// "diameter_nm",
263/// "fill",
264/// "index",
265/// "kind",
266/// "width_nm"
267/// ],
268/// "properties": {
269/// "cx": {
270/// "$ref": "#/$defs/JavaScriptSafeInteger"
271/// },
272/// "cy": {
273/// "$ref": "#/$defs/JavaScriptSafeInteger"
274/// },
275/// "diameter_nm": {
276/// "$ref": "#/$defs/JavaScriptSafeInteger"
277/// },
278/// "fill": {
279/// "$ref": "#/$defs/PlotterFill"
280/// },
281/// "fill_color": {
282/// "type": "string"
283/// },
284/// "index": {
285/// "type": "integer",
286/// "maximum": 4294967295.0,
287/// "minimum": 0.0
288/// },
289/// "kind": {
290/// "type": "string",
291/// "const": "Circle"
292/// },
293/// "layer": {
294/// "type": "string"
295/// },
296/// "layers": {
297/// "type": "array",
298/// "items": {
299/// "type": "string"
300/// }
301/// },
302/// "line_style": {
303/// "$ref": "#/$defs/PlotterLineStyle"
304/// },
305/// "mask_margin_nm": {
306/// "$ref": "#/$defs/JavaScriptSafeInteger"
307/// },
308/// "pad_size_x_nm": {
309/// "$ref": "#/$defs/JavaScriptSafeInteger"
310/// },
311/// "pad_size_y_nm": {
312/// "$ref": "#/$defs/JavaScriptSafeInteger"
313/// },
314/// "role": {
315/// "$ref": "#/$defs/PlotterDrillRole"
316/// },
317/// "stroke_color": {
318/// "type": "string"
319/// },
320/// "width_nm": {
321/// "$ref": "#/$defs/JavaScriptSafeInteger"
322/// }
323/// },
324/// "additionalProperties": false
325///}
326/// ```
327/// </details>
328#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
329#[serde(deny_unknown_fields)]
330pub struct CircleOperation {
331 pub cx: crate::JavaScriptSafeInteger,
332 pub cy: crate::JavaScriptSafeInteger,
333 pub diameter_nm: crate::JavaScriptSafeInteger,
334 pub fill: PlotterFill,
335 #[serde(
336 default,
337 deserialize_with = "crate::deserialize_present_nonnull",
338 skip_serializing_if = "::std::option::Option::is_none"
339 )]
340 pub fill_color: ::std::option::Option<::std::string::String>,
341 pub index: u32,
342 #[serde(deserialize_with = "crate::deserialize_circle_kind")]
343 pub kind: ::std::string::String,
344 #[serde(
345 default,
346 deserialize_with = "crate::deserialize_present_nonnull",
347 skip_serializing_if = "::std::option::Option::is_none"
348 )]
349 pub layer: ::std::option::Option<::std::string::String>,
350 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
351 pub layers: ::std::vec::Vec<::std::string::String>,
352 #[serde(
353 default,
354 deserialize_with = "crate::deserialize_present_nonnull",
355 skip_serializing_if = "::std::option::Option::is_none"
356 )]
357 pub line_style: ::std::option::Option<PlotterLineStyle>,
358 #[serde(
359 default,
360 deserialize_with = "crate::deserialize_present_nonnull",
361 skip_serializing_if = "::std::option::Option::is_none"
362 )]
363 pub mask_margin_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
364 #[serde(
365 default,
366 deserialize_with = "crate::deserialize_present_nonnull",
367 skip_serializing_if = "::std::option::Option::is_none"
368 )]
369 pub pad_size_x_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
370 #[serde(
371 default,
372 deserialize_with = "crate::deserialize_present_nonnull",
373 skip_serializing_if = "::std::option::Option::is_none"
374 )]
375 pub pad_size_y_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
376 #[serde(
377 default,
378 deserialize_with = "crate::deserialize_present_nonnull",
379 skip_serializing_if = "::std::option::Option::is_none"
380 )]
381 pub role: ::std::option::Option<PlotterDrillRole>,
382 #[serde(
383 default,
384 deserialize_with = "crate::deserialize_present_nonnull",
385 skip_serializing_if = "::std::option::Option::is_none"
386 )]
387 pub stroke_color: ::std::option::Option<::std::string::String>,
388 pub width_nm: crate::JavaScriptSafeInteger,
389}
390/**Circular pad flash shared by footprint and PCB producers. Footprint pad
391state requires mask_margin_nm and forbids role. Board via state requires
392role and forbids mask_margin_nm. The generated semantic validator enforces
393these mutually exclusive states.*/
394///
395/// <details><summary>JSON schema</summary>
396///
397/// ```json
398///{
399/// "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.",
400/// "type": "object",
401/// "required": [
402/// "diameter_nm",
403/// "index",
404/// "kind",
405/// "layers",
406/// "x",
407/// "y"
408/// ],
409/// "properties": {
410/// "diameter_nm": {
411/// "$ref": "#/$defs/JavaScriptSafeInteger"
412/// },
413/// "index": {
414/// "type": "integer",
415/// "maximum": 4294967295.0,
416/// "minimum": 0.0
417/// },
418/// "kind": {
419/// "type": "string",
420/// "const": "FlashPadCircle"
421/// },
422/// "layers": {
423/// "type": "array",
424/// "items": {
425/// "type": "string"
426/// }
427/// },
428/// "mask_margin_nm": {
429/// "$ref": "#/$defs/JavaScriptSafeInteger"
430/// },
431/// "role": {
432/// "$ref": "#/$defs/PlotterViaFlashRole"
433/// },
434/// "x": {
435/// "$ref": "#/$defs/JavaScriptSafeInteger"
436/// },
437/// "y": {
438/// "$ref": "#/$defs/JavaScriptSafeInteger"
439/// }
440/// },
441/// "additionalProperties": false
442///}
443/// ```
444/// </details>
445#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
446#[serde(deny_unknown_fields)]
447pub struct FlashPadCircleOperation {
448 pub diameter_nm: crate::JavaScriptSafeInteger,
449 pub index: u32,
450 #[serde(deserialize_with = "crate::deserialize_flash_pad_circle_kind")]
451 pub kind: ::std::string::String,
452 pub layers: ::std::vec::Vec<::std::string::String>,
453 #[serde(
454 default,
455 deserialize_with = "crate::deserialize_present_nonnull",
456 skip_serializing_if = "::std::option::Option::is_none"
457 )]
458 pub mask_margin_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
459 #[serde(
460 default,
461 deserialize_with = "crate::deserialize_present_nonnull",
462 skip_serializing_if = "::std::option::Option::is_none"
463 )]
464 pub role: ::std::option::Option<PlotterViaFlashRole>,
465 pub x: crate::JavaScriptSafeInteger,
466 pub y: crate::JavaScriptSafeInteger,
467}
468/**Custom pad flash shared by footprint and PCB producers. Polygon coordinates
469are pad-local. A non-empty polygon_widths_nm has one entry per polygon;
470generated semantic validation enforces that relationship. An empty array is
471equivalent to omission for generated Rust transport bindings.*/
472///
473/// <details><summary>JSON schema</summary>
474///
475/// ```json
476///{
477/// "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.",
478/// "type": "object",
479/// "required": [
480/// "index",
481/// "kind",
482/// "layers",
483/// "mask_margin_nm",
484/// "orient_deg",
485/// "polygons",
486/// "size_x_nm",
487/// "size_y_nm",
488/// "x",
489/// "y"
490/// ],
491/// "properties": {
492/// "anchor_shape": {
493/// "type": "string"
494/// },
495/// "index": {
496/// "type": "integer",
497/// "maximum": 4294967295.0,
498/// "minimum": 0.0
499/// },
500/// "kind": {
501/// "type": "string",
502/// "const": "FlashPadCustom"
503/// },
504/// "layers": {
505/// "type": "array",
506/// "items": {
507/// "type": "string"
508/// }
509/// },
510/// "mask_margin_nm": {
511/// "$ref": "#/$defs/JavaScriptSafeInteger"
512/// },
513/// "orient_deg": {
514/// "type": "number"
515/// },
516/// "polygon_widths_nm": {
517/// "type": "array",
518/// "items": {
519/// "$ref": "#/$defs/JavaScriptSafeInteger"
520/// }
521/// },
522/// "polygons": {
523/// "type": "array",
524/// "items": {
525/// "type": "array",
526/// "items": {
527/// "$ref": "#/$defs/PlotterPoint"
528/// }
529/// }
530/// },
531/// "size_x_nm": {
532/// "$ref": "#/$defs/JavaScriptSafeInteger"
533/// },
534/// "size_y_nm": {
535/// "$ref": "#/$defs/JavaScriptSafeInteger"
536/// },
537/// "x": {
538/// "$ref": "#/$defs/JavaScriptSafeInteger"
539/// },
540/// "y": {
541/// "$ref": "#/$defs/JavaScriptSafeInteger"
542/// }
543/// },
544/// "additionalProperties": false
545///}
546/// ```
547/// </details>
548#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
549#[serde(deny_unknown_fields)]
550pub struct FlashPadCustomOperation {
551 #[serde(
552 default,
553 deserialize_with = "crate::deserialize_present_nonnull",
554 skip_serializing_if = "::std::option::Option::is_none"
555 )]
556 pub anchor_shape: ::std::option::Option<::std::string::String>,
557 pub index: u32,
558 #[serde(deserialize_with = "crate::deserialize_flash_pad_custom_kind")]
559 pub kind: ::std::string::String,
560 pub layers: ::std::vec::Vec<::std::string::String>,
561 pub mask_margin_nm: crate::JavaScriptSafeInteger,
562 pub orient_deg: f64,
563 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
564 pub polygon_widths_nm: ::std::vec::Vec<crate::JavaScriptSafeInteger>,
565 pub polygons: ::std::vec::Vec<::std::vec::Vec<PlotterPoint>>,
566 pub size_x_nm: crate::JavaScriptSafeInteger,
567 pub size_y_nm: crate::JavaScriptSafeInteger,
568 pub x: crate::JavaScriptSafeInteger,
569 pub y: crate::JavaScriptSafeInteger,
570}
571///Oval pad flash shared by footprint and PCB producers.
572///
573/// <details><summary>JSON schema</summary>
574///
575/// ```json
576///{
577/// "description": "Oval pad flash shared by footprint and PCB producers.",
578/// "type": "object",
579/// "required": [
580/// "index",
581/// "kind",
582/// "layers",
583/// "mask_margin_nm",
584/// "orient_deg",
585/// "size_x_nm",
586/// "size_y_nm",
587/// "x",
588/// "y"
589/// ],
590/// "properties": {
591/// "index": {
592/// "type": "integer",
593/// "maximum": 4294967295.0,
594/// "minimum": 0.0
595/// },
596/// "kind": {
597/// "type": "string",
598/// "const": "FlashPadOval"
599/// },
600/// "layers": {
601/// "type": "array",
602/// "items": {
603/// "type": "string"
604/// }
605/// },
606/// "mask_margin_nm": {
607/// "$ref": "#/$defs/JavaScriptSafeInteger"
608/// },
609/// "orient_deg": {
610/// "type": "number"
611/// },
612/// "size_x_nm": {
613/// "$ref": "#/$defs/JavaScriptSafeInteger"
614/// },
615/// "size_y_nm": {
616/// "$ref": "#/$defs/JavaScriptSafeInteger"
617/// },
618/// "x": {
619/// "$ref": "#/$defs/JavaScriptSafeInteger"
620/// },
621/// "y": {
622/// "$ref": "#/$defs/JavaScriptSafeInteger"
623/// }
624/// },
625/// "additionalProperties": false
626///}
627/// ```
628/// </details>
629#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
630#[serde(deny_unknown_fields)]
631pub struct FlashPadOvalOperation {
632 pub index: u32,
633 #[serde(deserialize_with = "crate::deserialize_flash_pad_oval_kind")]
634 pub kind: ::std::string::String,
635 pub layers: ::std::vec::Vec<::std::string::String>,
636 pub mask_margin_nm: crate::JavaScriptSafeInteger,
637 pub orient_deg: f64,
638 pub size_x_nm: crate::JavaScriptSafeInteger,
639 pub size_y_nm: crate::JavaScriptSafeInteger,
640 pub x: crate::JavaScriptSafeInteger,
641 pub y: crate::JavaScriptSafeInteger,
642}
643///Rectangular pad flash shared by footprint and PCB producers.
644///
645/// <details><summary>JSON schema</summary>
646///
647/// ```json
648///{
649/// "description": "Rectangular pad flash shared by footprint and PCB producers.",
650/// "type": "object",
651/// "required": [
652/// "index",
653/// "kind",
654/// "layers",
655/// "mask_margin_nm",
656/// "orient_deg",
657/// "size_x_nm",
658/// "size_y_nm",
659/// "x",
660/// "y"
661/// ],
662/// "properties": {
663/// "index": {
664/// "type": "integer",
665/// "maximum": 4294967295.0,
666/// "minimum": 0.0
667/// },
668/// "kind": {
669/// "type": "string",
670/// "const": "FlashPadRect"
671/// },
672/// "layers": {
673/// "type": "array",
674/// "items": {
675/// "type": "string"
676/// }
677/// },
678/// "mask_margin_nm": {
679/// "$ref": "#/$defs/JavaScriptSafeInteger"
680/// },
681/// "orient_deg": {
682/// "type": "number"
683/// },
684/// "size_x_nm": {
685/// "$ref": "#/$defs/JavaScriptSafeInteger"
686/// },
687/// "size_y_nm": {
688/// "$ref": "#/$defs/JavaScriptSafeInteger"
689/// },
690/// "x": {
691/// "$ref": "#/$defs/JavaScriptSafeInteger"
692/// },
693/// "y": {
694/// "$ref": "#/$defs/JavaScriptSafeInteger"
695/// }
696/// },
697/// "additionalProperties": false
698///}
699/// ```
700/// </details>
701#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
702#[serde(deny_unknown_fields)]
703pub struct FlashPadRectOperation {
704 pub index: u32,
705 #[serde(deserialize_with = "crate::deserialize_flash_pad_rect_kind")]
706 pub kind: ::std::string::String,
707 pub layers: ::std::vec::Vec<::std::string::String>,
708 pub mask_margin_nm: crate::JavaScriptSafeInteger,
709 pub orient_deg: f64,
710 pub size_x_nm: crate::JavaScriptSafeInteger,
711 pub size_y_nm: crate::JavaScriptSafeInteger,
712 pub x: crate::JavaScriptSafeInteger,
713 pub y: crate::JavaScriptSafeInteger,
714}
715///Rounded-rectangle pad flash shared by footprint and PCB producers.
716///
717/// <details><summary>JSON schema</summary>
718///
719/// ```json
720///{
721/// "description": "Rounded-rectangle pad flash shared by footprint and PCB producers.",
722/// "type": "object",
723/// "required": [
724/// "corner_radius_nm",
725/// "index",
726/// "kind",
727/// "layers",
728/// "mask_margin_nm",
729/// "orient_deg",
730/// "size_x_nm",
731/// "size_y_nm",
732/// "x",
733/// "y"
734/// ],
735/// "properties": {
736/// "corner_radius_nm": {
737/// "$ref": "#/$defs/JavaScriptSafeInteger"
738/// },
739/// "index": {
740/// "type": "integer",
741/// "maximum": 4294967295.0,
742/// "minimum": 0.0
743/// },
744/// "kind": {
745/// "type": "string",
746/// "const": "FlashPadRoundRect"
747/// },
748/// "layers": {
749/// "type": "array",
750/// "items": {
751/// "type": "string"
752/// }
753/// },
754/// "mask_margin_nm": {
755/// "$ref": "#/$defs/JavaScriptSafeInteger"
756/// },
757/// "orient_deg": {
758/// "type": "number"
759/// },
760/// "size_x_nm": {
761/// "$ref": "#/$defs/JavaScriptSafeInteger"
762/// },
763/// "size_y_nm": {
764/// "$ref": "#/$defs/JavaScriptSafeInteger"
765/// },
766/// "x": {
767/// "$ref": "#/$defs/JavaScriptSafeInteger"
768/// },
769/// "y": {
770/// "$ref": "#/$defs/JavaScriptSafeInteger"
771/// }
772/// },
773/// "additionalProperties": false
774///}
775/// ```
776/// </details>
777#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
778#[serde(deny_unknown_fields)]
779pub struct FlashPadRoundRectOperation {
780 pub corner_radius_nm: crate::JavaScriptSafeInteger,
781 pub index: u32,
782 #[serde(deserialize_with = "crate::deserialize_flash_pad_round_rect_kind")]
783 pub kind: ::std::string::String,
784 pub layers: ::std::vec::Vec<::std::string::String>,
785 pub mask_margin_nm: crate::JavaScriptSafeInteger,
786 pub orient_deg: f64,
787 pub size_x_nm: crate::JavaScriptSafeInteger,
788 pub size_y_nm: crate::JavaScriptSafeInteger,
789 pub x: crate::JavaScriptSafeInteger,
790 pub y: crate::JavaScriptSafeInteger,
791}
792///Trapezoid pad flash shared by footprint and PCB producers.
793///
794/// <details><summary>JSON schema</summary>
795///
796/// ```json
797///{
798/// "description": "Trapezoid pad flash shared by footprint and PCB producers.",
799/// "type": "object",
800/// "required": [
801/// "corners",
802/// "index",
803/// "kind",
804/// "layers",
805/// "mask_margin_nm",
806/// "orient_deg",
807/// "x",
808/// "y"
809/// ],
810/// "properties": {
811/// "corners": {
812/// "$ref": "#/$defs/PlotterQuad"
813/// },
814/// "index": {
815/// "type": "integer",
816/// "maximum": 4294967295.0,
817/// "minimum": 0.0
818/// },
819/// "kind": {
820/// "type": "string",
821/// "const": "FlashPadTrapez"
822/// },
823/// "layers": {
824/// "type": "array",
825/// "items": {
826/// "type": "string"
827/// }
828/// },
829/// "mask_margin_nm": {
830/// "$ref": "#/$defs/JavaScriptSafeInteger"
831/// },
832/// "orient_deg": {
833/// "type": "number"
834/// },
835/// "x": {
836/// "$ref": "#/$defs/JavaScriptSafeInteger"
837/// },
838/// "y": {
839/// "$ref": "#/$defs/JavaScriptSafeInteger"
840/// }
841/// },
842/// "additionalProperties": false
843///}
844/// ```
845/// </details>
846#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
847#[serde(deny_unknown_fields)]
848pub struct FlashPadTrapezOperation {
849 pub corners: PlotterQuad,
850 pub index: u32,
851 #[serde(deserialize_with = "crate::deserialize_flash_pad_trapez_kind")]
852 pub kind: ::std::string::String,
853 pub layers: ::std::vec::Vec<::std::string::String>,
854 pub mask_margin_nm: crate::JavaScriptSafeInteger,
855 pub orient_deg: f64,
856 pub x: crate::JavaScriptSafeInteger,
857 pub y: crate::JavaScriptSafeInteger,
858}
859///One selected graphical subsymbol record.
860///
861/// <details><summary>JSON schema</summary>
862///
863/// ```json
864///{
865/// "description": "One selected graphical subsymbol record.",
866/// "type": "object",
867/// "required": [
868/// "kind",
869/// "object_id",
870/// "operation_count",
871/// "operations",
872/// "style",
873/// "unit",
874/// "uuid"
875/// ],
876/// "properties": {
877/// "kind": {
878/// "type": "string",
879/// "const": "lib_subsymbol"
880/// },
881/// "object_id": {
882/// "type": "string"
883/// },
884/// "operation_count": {
885/// "type": "integer",
886/// "maximum": 4294967295.0,
887/// "minimum": 0.0
888/// },
889/// "operations": {
890/// "type": "array",
891/// "items": {
892/// "$ref": "#/$defs/PlotterOperation"
893/// }
894/// },
895/// "style": {
896/// "type": "integer",
897/// "maximum": 4294967295.0,
898/// "minimum": 0.0
899/// },
900/// "unit": {
901/// "type": "integer",
902/// "maximum": 4294967295.0,
903/// "minimum": 0.0
904/// },
905/// "uuid": {
906/// "type": "string",
907/// "const": ""
908/// }
909/// },
910/// "additionalProperties": false
911///}
912/// ```
913/// </details>
914#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
915#[serde(deny_unknown_fields)]
916pub struct LibSubsymbolPlotRecord {
917 pub kind: ::std::string::String,
918 pub object_id: ::std::string::String,
919 pub operation_count: u32,
920 pub operations: ::std::vec::Vec<PlotterOperation>,
921 pub style: u32,
922 pub unit: u32,
923 pub uuid: ::std::string::String,
924}
925///Decoded image placement shared by worksheet and schematic producers.
926///
927/// <details><summary>JSON schema</summary>
928///
929/// ```json
930///{
931/// "description": "Decoded image placement shared by worksheet and schematic producers.",
932/// "type": "object",
933/// "required": [
934/// "height_nm",
935/// "image_data_b64",
936/// "image_format",
937/// "index",
938/// "kind",
939/// "scale",
940/// "width_nm",
941/// "x",
942/// "y"
943/// ],
944/// "properties": {
945/// "height_nm": {
946/// "$ref": "#/$defs/JavaScriptSafeInteger"
947/// },
948/// "image_data_b64": {
949/// "type": "string"
950/// },
951/// "image_format": {
952/// "type": "string"
953/// },
954/// "index": {
955/// "type": "integer",
956/// "maximum": 4294967295.0,
957/// "minimum": 0.0
958/// },
959/// "kind": {
960/// "type": "string",
961/// "const": "PlotImage"
962/// },
963/// "scale": {
964/// "type": "number"
965/// },
966/// "stroke_color": {
967/// "type": "string"
968/// },
969/// "width_nm": {
970/// "$ref": "#/$defs/JavaScriptSafeInteger"
971/// },
972/// "x": {
973/// "$ref": "#/$defs/JavaScriptSafeInteger"
974/// },
975/// "y": {
976/// "$ref": "#/$defs/JavaScriptSafeInteger"
977/// }
978/// },
979/// "additionalProperties": false
980///}
981/// ```
982/// </details>
983#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
984#[serde(deny_unknown_fields)]
985pub struct PlotImageOperation {
986 pub height_nm: crate::JavaScriptSafeInteger,
987 pub image_data_b64: ::std::string::String,
988 pub image_format: ::std::string::String,
989 pub index: u32,
990 #[serde(deserialize_with = "crate::deserialize_plot_image_kind")]
991 pub kind: ::std::string::String,
992 pub scale: f64,
993 #[serde(
994 default,
995 deserialize_with = "crate::deserialize_present_nonnull",
996 skip_serializing_if = "::std::option::Option::is_none"
997 )]
998 pub stroke_color: ::std::option::Option<::std::string::String>,
999 pub width_nm: crate::JavaScriptSafeInteger,
1000 pub x: crate::JavaScriptSafeInteger,
1001 pub y: crate::JavaScriptSafeInteger,
1002}
1003///Filled or outlined polygon operation.
1004///
1005/// <details><summary>JSON schema</summary>
1006///
1007/// ```json
1008///{
1009/// "description": "Filled or outlined polygon operation.",
1010/// "type": "object",
1011/// "required": [
1012/// "fill",
1013/// "index",
1014/// "kind",
1015/// "points",
1016/// "width_nm"
1017/// ],
1018/// "properties": {
1019/// "fill": {
1020/// "$ref": "#/$defs/PlotterFill"
1021/// },
1022/// "fill_color": {
1023/// "type": "string"
1024/// },
1025/// "index": {
1026/// "type": "integer",
1027/// "maximum": 4294967295.0,
1028/// "minimum": 0.0
1029/// },
1030/// "kind": {
1031/// "type": "string",
1032/// "const": "PlotPoly"
1033/// },
1034/// "layer": {
1035/// "type": "string"
1036/// },
1037/// "line_style": {
1038/// "$ref": "#/$defs/PlotterLineStyle"
1039/// },
1040/// "points": {
1041/// "type": "array",
1042/// "items": {
1043/// "$ref": "#/$defs/PlotterPoint"
1044/// }
1045/// },
1046/// "stroke_color": {
1047/// "type": "string"
1048/// },
1049/// "width_nm": {
1050/// "$ref": "#/$defs/JavaScriptSafeInteger"
1051/// }
1052/// },
1053/// "additionalProperties": false
1054///}
1055/// ```
1056/// </details>
1057#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1058#[serde(deny_unknown_fields)]
1059pub struct PlotPolyOperation {
1060 pub fill: PlotterFill,
1061 #[serde(
1062 default,
1063 deserialize_with = "crate::deserialize_present_nonnull",
1064 skip_serializing_if = "::std::option::Option::is_none"
1065 )]
1066 pub fill_color: ::std::option::Option<::std::string::String>,
1067 pub index: u32,
1068 #[serde(deserialize_with = "crate::deserialize_plot_poly_kind")]
1069 pub kind: ::std::string::String,
1070 #[serde(
1071 default,
1072 deserialize_with = "crate::deserialize_present_nonnull",
1073 skip_serializing_if = "::std::option::Option::is_none"
1074 )]
1075 pub layer: ::std::option::Option<::std::string::String>,
1076 #[serde(
1077 default,
1078 deserialize_with = "crate::deserialize_present_nonnull",
1079 skip_serializing_if = "::std::option::Option::is_none"
1080 )]
1081 pub line_style: ::std::option::Option<PlotterLineStyle>,
1082 pub points: ::std::vec::Vec<PlotterPoint>,
1083 #[serde(
1084 default,
1085 deserialize_with = "crate::deserialize_present_nonnull",
1086 skip_serializing_if = "::std::option::Option::is_none"
1087 )]
1088 pub stroke_color: ::std::option::Option<::std::string::String>,
1089 pub width_nm: crate::JavaScriptSafeInteger,
1090}
1091///Coordinate convention for the footprint plotter slice.
1092///
1093/// <details><summary>JSON schema</summary>
1094///
1095/// ```json
1096///{
1097/// "description": "Coordinate convention for the footprint plotter slice.",
1098/// "type": "object",
1099/// "required": [
1100/// "unit",
1101/// "y_axis"
1102/// ],
1103/// "properties": {
1104/// "unit": {
1105/// "type": "string",
1106/// "const": "nm"
1107/// },
1108/// "y_axis": {
1109/// "type": "string",
1110/// "const": "down"
1111/// }
1112/// },
1113/// "additionalProperties": false
1114///}
1115/// ```
1116/// </details>
1117#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1118#[serde(deny_unknown_fields)]
1119pub struct PlotterCoordinateSpace {
1120 pub unit: ::std::string::String,
1121 pub y_axis: ::std::string::String,
1122}
1123///Semantic roles allowed on shared circle and segment drill operations.
1124///
1125/// <details><summary>JSON schema</summary>
1126///
1127/// ```json
1128///{
1129/// "description": "Semantic roles allowed on shared circle and segment drill operations.",
1130/// "type": "string",
1131/// "enum": [
1132/// "pad_drill",
1133/// "npth_hole",
1134/// "via_drill",
1135/// "via_mask_drill"
1136/// ]
1137///}
1138/// ```
1139/// </details>
1140#[derive(
1141 ::serde::Deserialize,
1142 ::serde::Serialize,
1143 Clone,
1144 Copy,
1145 Debug,
1146 Eq,
1147 Hash,
1148 Ord,
1149 PartialEq,
1150 PartialOrd,
1151)]
1152pub enum PlotterDrillRole {
1153 #[serde(rename = "pad_drill")]
1154 PadDrill,
1155 #[serde(rename = "npth_hole")]
1156 NpthHole,
1157 #[serde(rename = "via_drill")]
1158 ViaDrill,
1159 #[serde(rename = "via_mask_drill")]
1160 ViaMaskDrill,
1161}
1162impl ::std::fmt::Display for PlotterDrillRole {
1163 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1164 match *self {
1165 Self::PadDrill => f.write_str("pad_drill"),
1166 Self::NpthHole => f.write_str("npth_hole"),
1167 Self::ViaDrill => f.write_str("via_drill"),
1168 Self::ViaMaskDrill => f.write_str("via_mask_drill"),
1169 }
1170 }
1171}
1172impl ::std::str::FromStr for PlotterDrillRole {
1173 type Err = self::error::ConversionError;
1174 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1175 match value {
1176 "pad_drill" => Ok(Self::PadDrill),
1177 "npth_hole" => Ok(Self::NpthHole),
1178 "via_drill" => Ok(Self::ViaDrill),
1179 "via_mask_drill" => Ok(Self::ViaMaskDrill),
1180 _ => Err("invalid value".into()),
1181 }
1182 }
1183}
1184impl ::std::convert::TryFrom<&str> for PlotterDrillRole {
1185 type Error = self::error::ConversionError;
1186 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1187 value.parse()
1188 }
1189}
1190impl ::std::convert::TryFrom<&::std::string::String> for PlotterDrillRole {
1191 type Error = self::error::ConversionError;
1192 fn try_from(
1193 value: &::std::string::String,
1194 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1195 value.parse()
1196 }
1197}
1198impl ::std::convert::TryFrom<::std::string::String> for PlotterDrillRole {
1199 type Error = self::error::ConversionError;
1200 fn try_from(
1201 value: ::std::string::String,
1202 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1203 value.parse()
1204 }
1205}
1206///Fill values shared by plotter operation producers.
1207///
1208/// <details><summary>JSON schema</summary>
1209///
1210/// ```json
1211///{
1212/// "description": "Fill values shared by plotter operation producers.",
1213/// "type": "string",
1214/// "enum": [
1215/// "NO_FILL",
1216/// "FILLED_SHAPE",
1217/// "FILLED_WITH_BG_BODYCOLOR",
1218/// "FILLED_WITH_COLOR",
1219/// "HATCH",
1220/// "REVERSE_HATCH",
1221/// "CROSS_HATCH"
1222/// ]
1223///}
1224/// ```
1225/// </details>
1226#[derive(
1227 ::serde::Deserialize,
1228 ::serde::Serialize,
1229 Clone,
1230 Copy,
1231 Debug,
1232 Eq,
1233 Hash,
1234 Ord,
1235 PartialEq,
1236 PartialOrd,
1237)]
1238pub enum PlotterFill {
1239 #[serde(rename = "NO_FILL")]
1240 NoFill,
1241 #[serde(rename = "FILLED_SHAPE")]
1242 FilledShape,
1243 #[serde(rename = "FILLED_WITH_BG_BODYCOLOR")]
1244 FilledWithBgBodycolor,
1245 #[serde(rename = "FILLED_WITH_COLOR")]
1246 FilledWithColor,
1247 #[serde(rename = "HATCH")]
1248 Hatch,
1249 #[serde(rename = "REVERSE_HATCH")]
1250 ReverseHatch,
1251 #[serde(rename = "CROSS_HATCH")]
1252 CrossHatch,
1253}
1254impl ::std::fmt::Display for PlotterFill {
1255 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1256 match *self {
1257 Self::NoFill => f.write_str("NO_FILL"),
1258 Self::FilledShape => f.write_str("FILLED_SHAPE"),
1259 Self::FilledWithBgBodycolor => f.write_str("FILLED_WITH_BG_BODYCOLOR"),
1260 Self::FilledWithColor => f.write_str("FILLED_WITH_COLOR"),
1261 Self::Hatch => f.write_str("HATCH"),
1262 Self::ReverseHatch => f.write_str("REVERSE_HATCH"),
1263 Self::CrossHatch => f.write_str("CROSS_HATCH"),
1264 }
1265 }
1266}
1267impl ::std::str::FromStr for PlotterFill {
1268 type Err = self::error::ConversionError;
1269 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1270 match value {
1271 "NO_FILL" => Ok(Self::NoFill),
1272 "FILLED_SHAPE" => Ok(Self::FilledShape),
1273 "FILLED_WITH_BG_BODYCOLOR" => Ok(Self::FilledWithBgBodycolor),
1274 "FILLED_WITH_COLOR" => Ok(Self::FilledWithColor),
1275 "HATCH" => Ok(Self::Hatch),
1276 "REVERSE_HATCH" => Ok(Self::ReverseHatch),
1277 "CROSS_HATCH" => Ok(Self::CrossHatch),
1278 _ => Err("invalid value".into()),
1279 }
1280 }
1281}
1282impl ::std::convert::TryFrom<&str> for PlotterFill {
1283 type Error = self::error::ConversionError;
1284 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1285 value.parse()
1286 }
1287}
1288impl ::std::convert::TryFrom<&::std::string::String> for PlotterFill {
1289 type Error = self::error::ConversionError;
1290 fn try_from(
1291 value: &::std::string::String,
1292 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1293 value.parse()
1294 }
1295}
1296impl ::std::convert::TryFrom<::std::string::String> for PlotterFill {
1297 type Error = self::error::ConversionError;
1298 fn try_from(
1299 value: ::std::string::String,
1300 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1301 value.parse()
1302 }
1303}
1304///One exact hyperlink attached to an authored plotter text carrier.
1305///
1306/// <details><summary>JSON schema</summary>
1307///
1308/// ```json
1309///{
1310/// "description": "One exact hyperlink attached to an authored plotter text carrier.",
1311/// "type": "object",
1312/// "required": [
1313/// "href"
1314/// ],
1315/// "properties": {
1316/// "href": {
1317/// "type": "string",
1318/// "minLength": 1
1319/// }
1320/// },
1321/// "additionalProperties": false
1322///}
1323/// ```
1324/// </details>
1325#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1326#[serde(deny_unknown_fields)]
1327pub struct PlotterHyperlink {
1328 pub href: PlotterHyperlinkHref,
1329}
1330///`PlotterHyperlinkHref`
1331///
1332/// <details><summary>JSON schema</summary>
1333///
1334/// ```json
1335///{
1336/// "type": "string",
1337/// "minLength": 1
1338///}
1339/// ```
1340/// </details>
1341#[derive(::serde::Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
1342#[serde(transparent)]
1343pub struct PlotterHyperlinkHref(::std::string::String);
1344impl ::std::ops::Deref for PlotterHyperlinkHref {
1345 type Target = ::std::string::String;
1346 fn deref(&self) -> &::std::string::String {
1347 &self.0
1348 }
1349}
1350impl ::std::convert::From<PlotterHyperlinkHref> for ::std::string::String {
1351 fn from(value: PlotterHyperlinkHref) -> Self {
1352 value.0
1353 }
1354}
1355impl ::std::str::FromStr for PlotterHyperlinkHref {
1356 type Err = self::error::ConversionError;
1357 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1358 if value.chars().count() < 1usize {
1359 return Err("shorter than 1 characters".into());
1360 }
1361 Ok(Self(value.to_string()))
1362 }
1363}
1364impl ::std::convert::TryFrom<&str> for PlotterHyperlinkHref {
1365 type Error = self::error::ConversionError;
1366 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1367 value.parse()
1368 }
1369}
1370impl ::std::convert::TryFrom<&::std::string::String> for PlotterHyperlinkHref {
1371 type Error = self::error::ConversionError;
1372 fn try_from(
1373 value: &::std::string::String,
1374 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1375 value.parse()
1376 }
1377}
1378impl ::std::convert::TryFrom<::std::string::String> for PlotterHyperlinkHref {
1379 type Error = self::error::ConversionError;
1380 fn try_from(
1381 value: ::std::string::String,
1382 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1383 value.parse()
1384 }
1385}
1386impl<'de> ::serde::Deserialize<'de> for PlotterHyperlinkHref {
1387 fn deserialize<D>(deserializer: D) -> ::std::result::Result<Self, D::Error>
1388 where
1389 D: ::serde::Deserializer<'de>,
1390 {
1391 ::std::string::String::deserialize(deserializer)?
1392 .parse()
1393 .map_err(|e: self::error::ConversionError| {
1394 <D::Error as ::serde::de::Error>::custom(e.to_string())
1395 })
1396 }
1397}
1398///KiCad stroke styles carried without producer-specific decomposition.
1399///
1400/// <details><summary>JSON schema</summary>
1401///
1402/// ```json
1403///{
1404/// "description": "KiCad stroke styles carried without producer-specific decomposition.",
1405/// "type": "string",
1406/// "enum": [
1407/// "DEFAULT",
1408/// "SOLID",
1409/// "DASH",
1410/// "DOT",
1411/// "DASH_DOT",
1412/// "DASH_DOT_DOT"
1413/// ]
1414///}
1415/// ```
1416/// </details>
1417#[derive(
1418 ::serde::Deserialize,
1419 ::serde::Serialize,
1420 Clone,
1421 Copy,
1422 Debug,
1423 Eq,
1424 Hash,
1425 Ord,
1426 PartialEq,
1427 PartialOrd,
1428)]
1429pub enum PlotterLineStyle {
1430 #[serde(rename = "DEFAULT")]
1431 Default,
1432 #[serde(rename = "SOLID")]
1433 Solid,
1434 #[serde(rename = "DASH")]
1435 Dash,
1436 #[serde(rename = "DOT")]
1437 Dot,
1438 #[serde(rename = "DASH_DOT")]
1439 DashDot,
1440 #[serde(rename = "DASH_DOT_DOT")]
1441 DashDotDot,
1442}
1443impl ::std::fmt::Display for PlotterLineStyle {
1444 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1445 match *self {
1446 Self::Default => f.write_str("DEFAULT"),
1447 Self::Solid => f.write_str("SOLID"),
1448 Self::Dash => f.write_str("DASH"),
1449 Self::Dot => f.write_str("DOT"),
1450 Self::DashDot => f.write_str("DASH_DOT"),
1451 Self::DashDotDot => f.write_str("DASH_DOT_DOT"),
1452 }
1453 }
1454}
1455impl ::std::str::FromStr for PlotterLineStyle {
1456 type Err = self::error::ConversionError;
1457 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1458 match value {
1459 "DEFAULT" => Ok(Self::Default),
1460 "SOLID" => Ok(Self::Solid),
1461 "DASH" => Ok(Self::Dash),
1462 "DOT" => Ok(Self::Dot),
1463 "DASH_DOT" => Ok(Self::DashDot),
1464 "DASH_DOT_DOT" => Ok(Self::DashDotDot),
1465 _ => Err("invalid value".into()),
1466 }
1467 }
1468}
1469impl ::std::convert::TryFrom<&str> for PlotterLineStyle {
1470 type Error = self::error::ConversionError;
1471 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1472 value.parse()
1473 }
1474}
1475impl ::std::convert::TryFrom<&::std::string::String> for PlotterLineStyle {
1476 type Error = self::error::ConversionError;
1477 fn try_from(
1478 value: &::std::string::String,
1479 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1480 value.parse()
1481 }
1482}
1483impl ::std::convert::TryFrom<::std::string::String> for PlotterLineStyle {
1484 type Error = self::error::ConversionError;
1485 fn try_from(
1486 value: ::std::string::String,
1487 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1488 value.parse()
1489 }
1490}
1491///Shared plotter operation vocabulary promoted across source producers.
1492///
1493/// <details><summary>JSON schema</summary>
1494///
1495/// ```json
1496///{
1497/// "description": "Shared plotter operation vocabulary promoted across source producers.",
1498/// "anyOf": [
1499/// {
1500/// "$ref": "#/$defs/ThickSegmentOperation"
1501/// },
1502/// {
1503/// "$ref": "#/$defs/ArcThreePointOperation"
1504/// },
1505/// {
1506/// "$ref": "#/$defs/CircleOperation"
1507/// },
1508/// {
1509/// "$ref": "#/$defs/RectOperation"
1510/// },
1511/// {
1512/// "$ref": "#/$defs/PlotPolyOperation"
1513/// },
1514/// {
1515/// "$ref": "#/$defs/BezierCurveOperation"
1516/// },
1517/// {
1518/// "$ref": "#/$defs/TextOperation"
1519/// },
1520/// {
1521/// "$ref": "#/$defs/PlotImageOperation"
1522/// },
1523/// {
1524/// "$ref": "#/$defs/FlashPadCircleOperation"
1525/// },
1526/// {
1527/// "$ref": "#/$defs/FlashPadOvalOperation"
1528/// },
1529/// {
1530/// "$ref": "#/$defs/FlashPadRectOperation"
1531/// },
1532/// {
1533/// "$ref": "#/$defs/FlashPadRoundRectOperation"
1534/// },
1535/// {
1536/// "$ref": "#/$defs/FlashPadCustomOperation"
1537/// },
1538/// {
1539/// "$ref": "#/$defs/FlashPadTrapezOperation"
1540/// }
1541/// ]
1542///}
1543/// ```
1544/// </details>
1545#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1546#[serde(untagged)]
1547pub enum PlotterOperation {
1548 ThickSegmentOperation(ThickSegmentOperation),
1549 ArcThreePointOperation(ArcThreePointOperation),
1550 CircleOperation(CircleOperation),
1551 RectOperation(RectOperation),
1552 PlotPolyOperation(PlotPolyOperation),
1553 BezierCurveOperation(BezierCurveOperation),
1554 TextOperation(TextOperation),
1555 PlotImageOperation(PlotImageOperation),
1556 FlashPadCircleOperation(FlashPadCircleOperation),
1557 FlashPadOvalOperation(FlashPadOvalOperation),
1558 FlashPadRectOperation(FlashPadRectOperation),
1559 FlashPadRoundRectOperation(FlashPadRoundRectOperation),
1560 FlashPadCustomOperation(FlashPadCustomOperation),
1561 FlashPadTrapezOperation(FlashPadTrapezOperation),
1562}
1563impl ::std::convert::From<ThickSegmentOperation> for PlotterOperation {
1564 fn from(value: ThickSegmentOperation) -> Self {
1565 Self::ThickSegmentOperation(value)
1566 }
1567}
1568impl ::std::convert::From<ArcThreePointOperation> for PlotterOperation {
1569 fn from(value: ArcThreePointOperation) -> Self {
1570 Self::ArcThreePointOperation(value)
1571 }
1572}
1573impl ::std::convert::From<CircleOperation> for PlotterOperation {
1574 fn from(value: CircleOperation) -> Self {
1575 Self::CircleOperation(value)
1576 }
1577}
1578impl ::std::convert::From<RectOperation> for PlotterOperation {
1579 fn from(value: RectOperation) -> Self {
1580 Self::RectOperation(value)
1581 }
1582}
1583impl ::std::convert::From<PlotPolyOperation> for PlotterOperation {
1584 fn from(value: PlotPolyOperation) -> Self {
1585 Self::PlotPolyOperation(value)
1586 }
1587}
1588impl ::std::convert::From<BezierCurveOperation> for PlotterOperation {
1589 fn from(value: BezierCurveOperation) -> Self {
1590 Self::BezierCurveOperation(value)
1591 }
1592}
1593impl ::std::convert::From<TextOperation> for PlotterOperation {
1594 fn from(value: TextOperation) -> Self {
1595 Self::TextOperation(value)
1596 }
1597}
1598impl ::std::convert::From<PlotImageOperation> for PlotterOperation {
1599 fn from(value: PlotImageOperation) -> Self {
1600 Self::PlotImageOperation(value)
1601 }
1602}
1603impl ::std::convert::From<FlashPadCircleOperation> for PlotterOperation {
1604 fn from(value: FlashPadCircleOperation) -> Self {
1605 Self::FlashPadCircleOperation(value)
1606 }
1607}
1608impl ::std::convert::From<FlashPadOvalOperation> for PlotterOperation {
1609 fn from(value: FlashPadOvalOperation) -> Self {
1610 Self::FlashPadOvalOperation(value)
1611 }
1612}
1613impl ::std::convert::From<FlashPadRectOperation> for PlotterOperation {
1614 fn from(value: FlashPadRectOperation) -> Self {
1615 Self::FlashPadRectOperation(value)
1616 }
1617}
1618impl ::std::convert::From<FlashPadRoundRectOperation> for PlotterOperation {
1619 fn from(value: FlashPadRoundRectOperation) -> Self {
1620 Self::FlashPadRoundRectOperation(value)
1621 }
1622}
1623impl ::std::convert::From<FlashPadCustomOperation> for PlotterOperation {
1624 fn from(value: FlashPadCustomOperation) -> Self {
1625 Self::FlashPadCustomOperation(value)
1626 }
1627}
1628impl ::std::convert::From<FlashPadTrapezOperation> for PlotterOperation {
1629 fn from(value: FlashPadTrapezOperation) -> Self {
1630 Self::FlashPadTrapezOperation(value)
1631 }
1632}
1633///Strict operation-local context emitted by current plotter producers.
1634///
1635/// <details><summary>JSON schema</summary>
1636///
1637/// ```json
1638///{
1639/// "description": "Strict operation-local context emitted by current plotter producers.",
1640/// "type": "object",
1641/// "required": [
1642/// "hyperlink"
1643/// ],
1644/// "properties": {
1645/// "hyperlink": {
1646/// "$ref": "#/$defs/PlotterHyperlink"
1647/// }
1648/// },
1649/// "additionalProperties": false
1650///}
1651/// ```
1652/// </details>
1653#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1654#[serde(deny_unknown_fields)]
1655pub struct PlotterOperationContext {
1656 pub hyperlink: PlotterHyperlink,
1657}
1658///Plotter point encoded as an exact coordinate pair.
1659///
1660/// <details><summary>JSON schema</summary>
1661///
1662/// ```json
1663///{
1664/// "description": "Plotter point encoded as an exact coordinate pair.",
1665/// "type": "array",
1666/// "items": {
1667/// "$ref": "#/$defs/JavaScriptSafeInteger"
1668/// },
1669/// "maxItems": 2,
1670/// "minItems": 2
1671///}
1672/// ```
1673/// </details>
1674#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1675#[serde(transparent)]
1676pub struct PlotterPoint(pub [crate::JavaScriptSafeInteger; 2usize]);
1677impl ::std::ops::Deref for PlotterPoint {
1678 type Target = [crate::JavaScriptSafeInteger; 2usize];
1679 fn deref(&self) -> &[crate::JavaScriptSafeInteger; 2usize] {
1680 &self.0
1681 }
1682}
1683impl ::std::convert::From<PlotterPoint> for [crate::JavaScriptSafeInteger; 2usize] {
1684 fn from(value: PlotterPoint) -> Self {
1685 value.0
1686 }
1687}
1688impl ::std::convert::From<[crate::JavaScriptSafeInteger; 2usize]> for PlotterPoint {
1689 fn from(value: [crate::JavaScriptSafeInteger; 2usize]) -> Self {
1690 Self(value)
1691 }
1692}
1693///Four pad-local trapezoid corners.
1694///
1695/// <details><summary>JSON schema</summary>
1696///
1697/// ```json
1698///{
1699/// "description": "Four pad-local trapezoid corners.",
1700/// "type": "array",
1701/// "items": {
1702/// "$ref": "#/$defs/PlotterPoint"
1703/// },
1704/// "maxItems": 4,
1705/// "minItems": 4
1706///}
1707/// ```
1708/// </details>
1709#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
1710#[serde(transparent)]
1711pub struct PlotterQuad(pub [PlotterPoint; 4usize]);
1712impl ::std::ops::Deref for PlotterQuad {
1713 type Target = [PlotterPoint; 4usize];
1714 fn deref(&self) -> &[PlotterPoint; 4usize] {
1715 &self.0
1716 }
1717}
1718impl ::std::convert::From<PlotterQuad> for [PlotterPoint; 4usize] {
1719 fn from(value: PlotterQuad) -> Self {
1720 value.0
1721 }
1722}
1723impl ::std::convert::From<[PlotterPoint; 4usize]> for PlotterQuad {
1724 fn from(value: [PlotterPoint; 4usize]) -> Self {
1725 Self(value)
1726 }
1727}
1728///Horizontal text alignments emitted by the board producers.
1729///
1730/// <details><summary>JSON schema</summary>
1731///
1732/// ```json
1733///{
1734/// "description": "Horizontal text alignments emitted by the board producers.",
1735/// "type": "string",
1736/// "enum": [
1737/// "GR_TEXT_H_ALIGN_LEFT",
1738/// "GR_TEXT_H_ALIGN_CENTER",
1739/// "GR_TEXT_H_ALIGN_RIGHT"
1740/// ]
1741///}
1742/// ```
1743/// </details>
1744#[derive(
1745 ::serde::Deserialize,
1746 ::serde::Serialize,
1747 Clone,
1748 Copy,
1749 Debug,
1750 Eq,
1751 Hash,
1752 Ord,
1753 PartialEq,
1754 PartialOrd,
1755)]
1756pub enum PlotterTextHAlign {
1757 #[serde(rename = "GR_TEXT_H_ALIGN_LEFT")]
1758 GrTextHAlignLeft,
1759 #[serde(rename = "GR_TEXT_H_ALIGN_CENTER")]
1760 GrTextHAlignCenter,
1761 #[serde(rename = "GR_TEXT_H_ALIGN_RIGHT")]
1762 GrTextHAlignRight,
1763}
1764impl ::std::fmt::Display for PlotterTextHAlign {
1765 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1766 match *self {
1767 Self::GrTextHAlignLeft => f.write_str("GR_TEXT_H_ALIGN_LEFT"),
1768 Self::GrTextHAlignCenter => f.write_str("GR_TEXT_H_ALIGN_CENTER"),
1769 Self::GrTextHAlignRight => f.write_str("GR_TEXT_H_ALIGN_RIGHT"),
1770 }
1771 }
1772}
1773impl ::std::str::FromStr for PlotterTextHAlign {
1774 type Err = self::error::ConversionError;
1775 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1776 match value {
1777 "GR_TEXT_H_ALIGN_LEFT" => Ok(Self::GrTextHAlignLeft),
1778 "GR_TEXT_H_ALIGN_CENTER" => Ok(Self::GrTextHAlignCenter),
1779 "GR_TEXT_H_ALIGN_RIGHT" => Ok(Self::GrTextHAlignRight),
1780 _ => Err("invalid value".into()),
1781 }
1782 }
1783}
1784impl ::std::convert::TryFrom<&str> for PlotterTextHAlign {
1785 type Error = self::error::ConversionError;
1786 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1787 value.parse()
1788 }
1789}
1790impl ::std::convert::TryFrom<&::std::string::String> for PlotterTextHAlign {
1791 type Error = self::error::ConversionError;
1792 fn try_from(
1793 value: &::std::string::String,
1794 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1795 value.parse()
1796 }
1797}
1798impl ::std::convert::TryFrom<::std::string::String> for PlotterTextHAlign {
1799 type Error = self::error::ConversionError;
1800 fn try_from(
1801 value: ::std::string::String,
1802 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1803 value.parse()
1804 }
1805}
1806///Coordinate space carried by one typed text render cache.
1807///
1808/// <details><summary>JSON schema</summary>
1809///
1810/// ```json
1811///{
1812/// "description": "Coordinate space carried by one typed text render cache.",
1813/// "type": "string",
1814/// "enum": [
1815/// "board",
1816/// "footprint_local"
1817/// ]
1818///}
1819/// ```
1820/// </details>
1821#[derive(
1822 ::serde::Deserialize,
1823 ::serde::Serialize,
1824 Clone,
1825 Copy,
1826 Debug,
1827 Eq,
1828 Hash,
1829 Ord,
1830 PartialEq,
1831 PartialOrd,
1832)]
1833pub enum PlotterTextRenderCacheCoordinateSpace {
1834 #[serde(rename = "board")]
1835 Board,
1836 #[serde(rename = "footprint_local")]
1837 FootprintLocal,
1838}
1839impl ::std::fmt::Display for PlotterTextRenderCacheCoordinateSpace {
1840 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1841 match *self {
1842 Self::Board => f.write_str("board"),
1843 Self::FootprintLocal => f.write_str("footprint_local"),
1844 }
1845 }
1846}
1847impl ::std::str::FromStr for PlotterTextRenderCacheCoordinateSpace {
1848 type Err = self::error::ConversionError;
1849 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1850 match value {
1851 "board" => Ok(Self::Board),
1852 "footprint_local" => Ok(Self::FootprintLocal),
1853 _ => Err("invalid value".into()),
1854 }
1855 }
1856}
1857impl ::std::convert::TryFrom<&str> for PlotterTextRenderCacheCoordinateSpace {
1858 type Error = self::error::ConversionError;
1859 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1860 value.parse()
1861 }
1862}
1863impl ::std::convert::TryFrom<&::std::string::String> for PlotterTextRenderCacheCoordinateSpace {
1864 type Error = self::error::ConversionError;
1865 fn try_from(
1866 value: &::std::string::String,
1867 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1868 value.parse()
1869 }
1870}
1871impl ::std::convert::TryFrom<::std::string::String> for PlotterTextRenderCacheCoordinateSpace {
1872 type Error = self::error::ConversionError;
1873 fn try_from(
1874 value: ::std::string::String,
1875 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1876 value.parse()
1877 }
1878}
1879///Provenance of one attached text render cache.
1880///
1881/// <details><summary>JSON schema</summary>
1882///
1883/// ```json
1884///{
1885/// "description": "Provenance of one attached text render cache.",
1886/// "type": "string",
1887/// "enum": [
1888/// "existing_file_cache",
1889/// "python_generated_cache",
1890/// "native_generated_cache"
1891/// ]
1892///}
1893/// ```
1894/// </details>
1895#[derive(
1896 ::serde::Deserialize,
1897 ::serde::Serialize,
1898 Clone,
1899 Copy,
1900 Debug,
1901 Eq,
1902 Hash,
1903 Ord,
1904 PartialEq,
1905 PartialOrd,
1906)]
1907pub enum PlotterTextRenderCacheSource {
1908 #[serde(rename = "existing_file_cache")]
1909 ExistingFileCache,
1910 #[serde(rename = "python_generated_cache")]
1911 PythonGeneratedCache,
1912 #[serde(rename = "native_generated_cache")]
1913 NativeGeneratedCache,
1914}
1915impl ::std::fmt::Display for PlotterTextRenderCacheSource {
1916 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1917 match *self {
1918 Self::ExistingFileCache => f.write_str("existing_file_cache"),
1919 Self::PythonGeneratedCache => f.write_str("python_generated_cache"),
1920 Self::NativeGeneratedCache => f.write_str("native_generated_cache"),
1921 }
1922 }
1923}
1924impl ::std::str::FromStr for PlotterTextRenderCacheSource {
1925 type Err = self::error::ConversionError;
1926 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1927 match value {
1928 "existing_file_cache" => Ok(Self::ExistingFileCache),
1929 "python_generated_cache" => Ok(Self::PythonGeneratedCache),
1930 "native_generated_cache" => Ok(Self::NativeGeneratedCache),
1931 _ => Err("invalid value".into()),
1932 }
1933 }
1934}
1935impl ::std::convert::TryFrom<&str> for PlotterTextRenderCacheSource {
1936 type Error = self::error::ConversionError;
1937 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
1938 value.parse()
1939 }
1940}
1941impl ::std::convert::TryFrom<&::std::string::String> for PlotterTextRenderCacheSource {
1942 type Error = self::error::ConversionError;
1943 fn try_from(
1944 value: &::std::string::String,
1945 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1946 value.parse()
1947 }
1948}
1949impl ::std::convert::TryFrom<::std::string::String> for PlotterTextRenderCacheSource {
1950 type Error = self::error::ConversionError;
1951 fn try_from(
1952 value: ::std::string::String,
1953 ) -> ::std::result::Result<Self, self::error::ConversionError> {
1954 value.parse()
1955 }
1956}
1957///Vertical text alignments emitted by the board producers.
1958///
1959/// <details><summary>JSON schema</summary>
1960///
1961/// ```json
1962///{
1963/// "description": "Vertical text alignments emitted by the board producers.",
1964/// "type": "string",
1965/// "enum": [
1966/// "GR_TEXT_V_ALIGN_TOP",
1967/// "GR_TEXT_V_ALIGN_CENTER",
1968/// "GR_TEXT_V_ALIGN_BOTTOM"
1969/// ]
1970///}
1971/// ```
1972/// </details>
1973#[derive(
1974 ::serde::Deserialize,
1975 ::serde::Serialize,
1976 Clone,
1977 Copy,
1978 Debug,
1979 Eq,
1980 Hash,
1981 Ord,
1982 PartialEq,
1983 PartialOrd,
1984)]
1985pub enum PlotterTextVAlign {
1986 #[serde(rename = "GR_TEXT_V_ALIGN_TOP")]
1987 GrTextVAlignTop,
1988 #[serde(rename = "GR_TEXT_V_ALIGN_CENTER")]
1989 GrTextVAlignCenter,
1990 #[serde(rename = "GR_TEXT_V_ALIGN_BOTTOM")]
1991 GrTextVAlignBottom,
1992}
1993impl ::std::fmt::Display for PlotterTextVAlign {
1994 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1995 match *self {
1996 Self::GrTextVAlignTop => f.write_str("GR_TEXT_V_ALIGN_TOP"),
1997 Self::GrTextVAlignCenter => f.write_str("GR_TEXT_V_ALIGN_CENTER"),
1998 Self::GrTextVAlignBottom => f.write_str("GR_TEXT_V_ALIGN_BOTTOM"),
1999 }
2000 }
2001}
2002impl ::std::str::FromStr for PlotterTextVAlign {
2003 type Err = self::error::ConversionError;
2004 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2005 match value {
2006 "GR_TEXT_V_ALIGN_TOP" => Ok(Self::GrTextVAlignTop),
2007 "GR_TEXT_V_ALIGN_CENTER" => Ok(Self::GrTextVAlignCenter),
2008 "GR_TEXT_V_ALIGN_BOTTOM" => Ok(Self::GrTextVAlignBottom),
2009 _ => Err("invalid value".into()),
2010 }
2011 }
2012}
2013impl ::std::convert::TryFrom<&str> for PlotterTextVAlign {
2014 type Error = self::error::ConversionError;
2015 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2016 value.parse()
2017 }
2018}
2019impl ::std::convert::TryFrom<&::std::string::String> for PlotterTextVAlign {
2020 type Error = self::error::ConversionError;
2021 fn try_from(
2022 value: &::std::string::String,
2023 ) -> ::std::result::Result<Self, self::error::ConversionError> {
2024 value.parse()
2025 }
2026}
2027impl ::std::convert::TryFrom<::std::string::String> for PlotterTextVAlign {
2028 type Error = self::error::ConversionError;
2029 fn try_from(
2030 value: ::std::string::String,
2031 ) -> ::std::result::Result<Self, self::error::ConversionError> {
2032 value.parse()
2033 }
2034}
2035///Semantic roles allowed on board via flash operations.
2036///
2037/// <details><summary>JSON schema</summary>
2038///
2039/// ```json
2040///{
2041/// "description": "Semantic roles allowed on board via flash operations.",
2042/// "type": "string",
2043/// "enum": [
2044/// "via_aperture",
2045/// "via_mask_opening"
2046/// ]
2047///}
2048/// ```
2049/// </details>
2050#[derive(
2051 ::serde::Deserialize,
2052 ::serde::Serialize,
2053 Clone,
2054 Copy,
2055 Debug,
2056 Eq,
2057 Hash,
2058 Ord,
2059 PartialEq,
2060 PartialOrd,
2061)]
2062pub enum PlotterViaFlashRole {
2063 #[serde(rename = "via_aperture")]
2064 ViaAperture,
2065 #[serde(rename = "via_mask_opening")]
2066 ViaMaskOpening,
2067}
2068impl ::std::fmt::Display for PlotterViaFlashRole {
2069 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2070 match *self {
2071 Self::ViaAperture => f.write_str("via_aperture"),
2072 Self::ViaMaskOpening => f.write_str("via_mask_opening"),
2073 }
2074 }
2075}
2076impl ::std::str::FromStr for PlotterViaFlashRole {
2077 type Err = self::error::ConversionError;
2078 fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2079 match value {
2080 "via_aperture" => Ok(Self::ViaAperture),
2081 "via_mask_opening" => Ok(Self::ViaMaskOpening),
2082 _ => Err("invalid value".into()),
2083 }
2084 }
2085}
2086impl ::std::convert::TryFrom<&str> for PlotterViaFlashRole {
2087 type Error = self::error::ConversionError;
2088 fn try_from(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2089 value.parse()
2090 }
2091}
2092impl ::std::convert::TryFrom<&::std::string::String> for PlotterViaFlashRole {
2093 type Error = self::error::ConversionError;
2094 fn try_from(
2095 value: &::std::string::String,
2096 ) -> ::std::result::Result<Self, self::error::ConversionError> {
2097 value.parse()
2098 }
2099}
2100impl ::std::convert::TryFrom<::std::string::String> for PlotterViaFlashRole {
2101 type Error = self::error::ConversionError;
2102 fn try_from(
2103 value: ::std::string::String,
2104 ) -> ::std::result::Result<Self, self::error::ConversionError> {
2105 value.parse()
2106 }
2107}
2108///Rectangle with square corners.
2109///
2110/// <details><summary>JSON schema</summary>
2111///
2112/// ```json
2113///{
2114/// "description": "Rectangle with square corners.",
2115/// "type": "object",
2116/// "required": [
2117/// "corner_radius_nm",
2118/// "fill",
2119/// "index",
2120/// "kind",
2121/// "width_nm",
2122/// "x1",
2123/// "x2",
2124/// "y1",
2125/// "y2"
2126/// ],
2127/// "properties": {
2128/// "corner_radius_nm": {
2129/// "$ref": "#/$defs/JavaScriptSafeInteger"
2130/// },
2131/// "fill": {
2132/// "$ref": "#/$defs/PlotterFill"
2133/// },
2134/// "fill_color": {
2135/// "type": "string"
2136/// },
2137/// "index": {
2138/// "type": "integer",
2139/// "maximum": 4294967295.0,
2140/// "minimum": 0.0
2141/// },
2142/// "kind": {
2143/// "type": "string",
2144/// "const": "Rect"
2145/// },
2146/// "layer": {
2147/// "type": "string"
2148/// },
2149/// "line_style": {
2150/// "$ref": "#/$defs/PlotterLineStyle"
2151/// },
2152/// "stroke_color": {
2153/// "type": "string"
2154/// },
2155/// "width_nm": {
2156/// "$ref": "#/$defs/JavaScriptSafeInteger"
2157/// },
2158/// "x1": {
2159/// "$ref": "#/$defs/JavaScriptSafeInteger"
2160/// },
2161/// "x2": {
2162/// "$ref": "#/$defs/JavaScriptSafeInteger"
2163/// },
2164/// "y1": {
2165/// "$ref": "#/$defs/JavaScriptSafeInteger"
2166/// },
2167/// "y2": {
2168/// "$ref": "#/$defs/JavaScriptSafeInteger"
2169/// }
2170/// },
2171/// "additionalProperties": false
2172///}
2173/// ```
2174/// </details>
2175#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2176#[serde(deny_unknown_fields)]
2177pub struct RectOperation {
2178 pub corner_radius_nm: crate::JavaScriptSafeInteger,
2179 pub fill: PlotterFill,
2180 #[serde(
2181 default,
2182 deserialize_with = "crate::deserialize_present_nonnull",
2183 skip_serializing_if = "::std::option::Option::is_none"
2184 )]
2185 pub fill_color: ::std::option::Option<::std::string::String>,
2186 pub index: u32,
2187 #[serde(deserialize_with = "crate::deserialize_rect_kind")]
2188 pub kind: ::std::string::String,
2189 #[serde(
2190 default,
2191 deserialize_with = "crate::deserialize_present_nonnull",
2192 skip_serializing_if = "::std::option::Option::is_none"
2193 )]
2194 pub layer: ::std::option::Option<::std::string::String>,
2195 #[serde(
2196 default,
2197 deserialize_with = "crate::deserialize_present_nonnull",
2198 skip_serializing_if = "::std::option::Option::is_none"
2199 )]
2200 pub line_style: ::std::option::Option<PlotterLineStyle>,
2201 #[serde(
2202 default,
2203 deserialize_with = "crate::deserialize_present_nonnull",
2204 skip_serializing_if = "::std::option::Option::is_none"
2205 )]
2206 pub stroke_color: ::std::option::Option<::std::string::String>,
2207 pub width_nm: crate::JavaScriptSafeInteger,
2208 pub x1: crate::JavaScriptSafeInteger,
2209 pub x2: crate::JavaScriptSafeInteger,
2210 pub y1: crate::JavaScriptSafeInteger,
2211 pub y2: crate::JavaScriptSafeInteger,
2212}
2213///Leading metadata record for the selected library symbol.
2214///
2215/// <details><summary>JSON schema</summary>
2216///
2217/// ```json
2218///{
2219/// "description": "Leading metadata record for the selected library symbol.",
2220/// "type": "object",
2221/// "required": [
2222/// "in_bom",
2223/// "kind",
2224/// "name",
2225/// "object_id",
2226/// "on_board",
2227/// "operation_count",
2228/// "operations",
2229/// "power",
2230/// "style",
2231/// "uuid"
2232/// ],
2233/// "properties": {
2234/// "extends": {
2235/// "type": "string"
2236/// },
2237/// "in_bom": {
2238/// "type": "boolean"
2239/// },
2240/// "kind": {
2241/// "type": "string",
2242/// "const": "lib_symbol"
2243/// },
2244/// "name": {
2245/// "type": "string"
2246/// },
2247/// "object_id": {
2248/// "type": "string"
2249/// },
2250/// "on_board": {
2251/// "type": "boolean"
2252/// },
2253/// "operation_count": {
2254/// "type": "integer",
2255/// "maximum": 4294967295.0,
2256/// "minimum": 0.0
2257/// },
2258/// "operations": {
2259/// "type": "array",
2260/// "items": {
2261/// "$ref": "#/$defs/PlotterOperation"
2262/// }
2263/// },
2264/// "power": {
2265/// "type": "boolean"
2266/// },
2267/// "style": {
2268/// "type": "integer",
2269/// "maximum": 4294967295.0,
2270/// "minimum": 0.0
2271/// },
2272/// "unit": {
2273/// "type": "integer",
2274/// "maximum": 4294967295.0,
2275/// "minimum": 0.0
2276/// },
2277/// "uuid": {
2278/// "type": "string",
2279/// "const": ""
2280/// }
2281/// },
2282/// "additionalProperties": false
2283///}
2284/// ```
2285/// </details>
2286#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2287#[serde(deny_unknown_fields)]
2288pub struct SymbolHeaderPlotRecord {
2289 #[serde(
2290 default,
2291 deserialize_with = "crate::deserialize_present_nonnull",
2292 skip_serializing_if = "::std::option::Option::is_none"
2293 )]
2294 pub extends: ::std::option::Option<::std::string::String>,
2295 pub in_bom: bool,
2296 pub kind: ::std::string::String,
2297 pub name: ::std::string::String,
2298 pub object_id: ::std::string::String,
2299 pub on_board: bool,
2300 pub operation_count: u32,
2301 pub operations: ::std::vec::Vec<PlotterOperation>,
2302 pub power: bool,
2303 pub style: u32,
2304 #[serde(
2305 default,
2306 deserialize_with = "crate::deserialize_present_nonnull",
2307 skip_serializing_if = "::std::option::Option::is_none"
2308 )]
2309 pub unit: ::std::option::Option<u32>,
2310 pub uuid: ::std::string::String,
2311}
2312///Strict cache-free library-symbol geometry and text subset of kicad.plotter_ir.a0.
2313///
2314/// <details><summary>JSON schema</summary>
2315///
2316/// ```json
2317///{
2318/// "$id": "urn:wavenumber:schema:kicad_monkey.symbol_plot.document:a0",
2319/// "title": "Symbol plot document a0",
2320/// "description": "Strict cache-free library-symbol geometry and text subset of kicad.plotter_ir.a0.",
2321/// "type": "object",
2322/// "required": [
2323/// "coordinate_space",
2324/// "document_id",
2325/// "records",
2326/// "schema",
2327/// "source_kind",
2328/// "total_operations"
2329/// ],
2330/// "properties": {
2331/// "coordinate_space": {
2332/// "$ref": "#/$defs/PlotterCoordinateSpace"
2333/// },
2334/// "document_id": {
2335/// "type": "string"
2336/// },
2337/// "records": {
2338/// "type": "array",
2339/// "items": {
2340/// "$ref": "#/$defs/SymbolPlotRecord"
2341/// }
2342/// },
2343/// "schema": {
2344/// "type": "string",
2345/// "const": "kicad.plotter_ir.a0"
2346/// },
2347/// "source_kind": {
2348/// "type": "string",
2349/// "const": "SYM"
2350/// },
2351/// "source_path": {
2352/// "type": "string"
2353/// },
2354/// "total_operations": {
2355/// "type": "integer",
2356/// "maximum": 4294967295.0,
2357/// "minimum": 0.0
2358/// }
2359/// },
2360/// "additionalProperties": false
2361///}
2362/// ```
2363/// </details>
2364#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2365#[serde(deny_unknown_fields)]
2366pub struct SymbolPlotDocumentA0 {
2367 pub coordinate_space: PlotterCoordinateSpace,
2368 pub document_id: ::std::string::String,
2369 pub records: ::std::vec::Vec<SymbolPlotRecord>,
2370 pub schema: ::std::string::String,
2371 pub source_kind: ::std::string::String,
2372 #[serde(
2373 default,
2374 deserialize_with = "crate::deserialize_present_nonnull",
2375 skip_serializing_if = "::std::option::Option::is_none"
2376 )]
2377 pub source_path: ::std::option::Option<::std::string::String>,
2378 pub total_operations: u32,
2379}
2380///`SymbolPlotRecord`
2381///
2382/// <details><summary>JSON schema</summary>
2383///
2384/// ```json
2385///{
2386/// "anyOf": [
2387/// {
2388/// "$ref": "#/$defs/SymbolHeaderPlotRecord"
2389/// },
2390/// {
2391/// "$ref": "#/$defs/LibSubsymbolPlotRecord"
2392/// }
2393/// ]
2394///}
2395/// ```
2396/// </details>
2397#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2398#[serde(untagged)]
2399pub enum SymbolPlotRecord {
2400 SymbolHeaderPlotRecord(SymbolHeaderPlotRecord),
2401 LibSubsymbolPlotRecord(LibSubsymbolPlotRecord),
2402}
2403impl ::std::convert::From<SymbolHeaderPlotRecord> for SymbolPlotRecord {
2404 fn from(value: SymbolHeaderPlotRecord) -> Self {
2405 Self::SymbolHeaderPlotRecord(value)
2406 }
2407}
2408impl ::std::convert::From<LibSubsymbolPlotRecord> for SymbolPlotRecord {
2409 fn from(value: LibSubsymbolPlotRecord) -> Self {
2410 Self::LibSubsymbolPlotRecord(value)
2411 }
2412}
2413/**Stroke or cached text operation. Boolean marker keys (`mirror`,
2414`text_as_polygons`, `polyline_per_segment`, `knockout`) are present-only
2415-when-true, matching the established Python emitter. Render-cache keys
2416appear together when an authored cache resolves; `render_cache_polygons`
2417carries the exterior rings in nanometres.*/
2418///
2419/// <details><summary>JSON schema</summary>
2420///
2421/// ```json
2422///{
2423/// "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.",
2424/// "type": "object",
2425/// "required": [
2426/// "bold",
2427/// "color",
2428/// "font_face",
2429/// "h_align",
2430/// "index",
2431/// "italic",
2432/// "kind",
2433/// "multiline",
2434/// "orient_deg",
2435/// "pen_width_nm",
2436/// "size_x_nm",
2437/// "size_y_nm",
2438/// "text",
2439/// "v_align",
2440/// "x",
2441/// "y"
2442/// ],
2443/// "properties": {
2444/// "bold": {
2445/// "type": "boolean"
2446/// },
2447/// "color": {
2448/// "type": "string"
2449/// },
2450/// "context": {
2451/// "$ref": "#/$defs/PlotterOperationContext"
2452/// },
2453/// "font_face": {
2454/// "type": "string"
2455/// },
2456/// "h_align": {
2457/// "$ref": "#/$defs/PlotterTextHAlign"
2458/// },
2459/// "index": {
2460/// "type": "integer",
2461/// "maximum": 4294967295.0,
2462/// "minimum": 0.0
2463/// },
2464/// "italic": {
2465/// "type": "boolean"
2466/// },
2467/// "kind": {
2468/// "type": "string",
2469/// "const": "Text"
2470/// },
2471/// "knockout": {
2472/// "type": "boolean"
2473/// },
2474/// "layer": {
2475/// "type": "string"
2476/// },
2477/// "mirror": {
2478/// "type": "boolean"
2479/// },
2480/// "multiline": {
2481/// "type": "boolean"
2482/// },
2483/// "orient_deg": {
2484/// "type": "number"
2485/// },
2486/// "pen_width_nm": {
2487/// "$ref": "#/$defs/JavaScriptSafeInteger"
2488/// },
2489/// "polyline_per_segment": {
2490/// "type": "boolean"
2491/// },
2492/// "render_cache": {
2493/// "$ref": "#/$defs/TextRenderCache"
2494/// },
2495/// "render_cache_exact": {
2496/// "type": "boolean"
2497/// },
2498/// "render_cache_polygons": {
2499/// "type": "array",
2500/// "items": {
2501/// "type": "array",
2502/// "items": {
2503/// "$ref": "#/$defs/PlotterPoint"
2504/// }
2505/// }
2506/// },
2507/// "render_cache_source": {
2508/// "$ref": "#/$defs/PlotterTextRenderCacheSource"
2509/// },
2510/// "size_x_nm": {
2511/// "$ref": "#/$defs/JavaScriptSafeInteger"
2512/// },
2513/// "size_y_nm": {
2514/// "$ref": "#/$defs/JavaScriptSafeInteger"
2515/// },
2516/// "text": {
2517/// "type": "string"
2518/// },
2519/// "text_as_polygons": {
2520/// "type": "boolean"
2521/// },
2522/// "v_align": {
2523/// "$ref": "#/$defs/PlotterTextVAlign"
2524/// },
2525/// "x": {
2526/// "$ref": "#/$defs/JavaScriptSafeInteger"
2527/// },
2528/// "y": {
2529/// "$ref": "#/$defs/JavaScriptSafeInteger"
2530/// }
2531/// },
2532/// "additionalProperties": false
2533///}
2534/// ```
2535/// </details>
2536#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2537#[serde(deny_unknown_fields)]
2538pub struct TextOperation {
2539 pub bold: bool,
2540 pub color: ::std::string::String,
2541 #[serde(
2542 default,
2543 deserialize_with = "crate::deserialize_present_nonnull",
2544 skip_serializing_if = "::std::option::Option::is_none"
2545 )]
2546 pub context: ::std::option::Option<PlotterOperationContext>,
2547 pub font_face: ::std::string::String,
2548 pub h_align: PlotterTextHAlign,
2549 pub index: u32,
2550 pub italic: bool,
2551 #[serde(deserialize_with = "crate::deserialize_text_kind")]
2552 pub kind: ::std::string::String,
2553 #[serde(
2554 default,
2555 deserialize_with = "crate::deserialize_present_nonnull",
2556 skip_serializing_if = "::std::option::Option::is_none"
2557 )]
2558 pub knockout: ::std::option::Option<bool>,
2559 #[serde(
2560 default,
2561 deserialize_with = "crate::deserialize_present_nonnull",
2562 skip_serializing_if = "::std::option::Option::is_none"
2563 )]
2564 pub layer: ::std::option::Option<::std::string::String>,
2565 #[serde(
2566 default,
2567 deserialize_with = "crate::deserialize_present_nonnull",
2568 skip_serializing_if = "::std::option::Option::is_none"
2569 )]
2570 pub mirror: ::std::option::Option<bool>,
2571 pub multiline: bool,
2572 pub orient_deg: f64,
2573 pub pen_width_nm: crate::JavaScriptSafeInteger,
2574 #[serde(
2575 default,
2576 deserialize_with = "crate::deserialize_present_nonnull",
2577 skip_serializing_if = "::std::option::Option::is_none"
2578 )]
2579 pub polyline_per_segment: ::std::option::Option<bool>,
2580 #[serde(
2581 default,
2582 deserialize_with = "crate::deserialize_present_nonnull",
2583 skip_serializing_if = "::std::option::Option::is_none"
2584 )]
2585 pub render_cache: ::std::option::Option<TextRenderCache>,
2586 #[serde(
2587 default,
2588 deserialize_with = "crate::deserialize_present_nonnull",
2589 skip_serializing_if = "::std::option::Option::is_none"
2590 )]
2591 pub render_cache_exact: ::std::option::Option<bool>,
2592 #[serde(
2593 default,
2594 deserialize_with = "crate::reject_present_render_cache_polygons",
2595 skip_serializing_if = "::std::vec::Vec::is_empty"
2596 )]
2597 pub render_cache_polygons: ::std::vec::Vec<::std::vec::Vec<PlotterPoint>>,
2598 #[serde(
2599 default,
2600 deserialize_with = "crate::deserialize_present_nonnull",
2601 skip_serializing_if = "::std::option::Option::is_none"
2602 )]
2603 pub render_cache_source: ::std::option::Option<PlotterTextRenderCacheSource>,
2604 pub size_x_nm: crate::JavaScriptSafeInteger,
2605 pub size_y_nm: crate::JavaScriptSafeInteger,
2606 pub text: ::std::string::String,
2607 #[serde(
2608 default,
2609 deserialize_with = "crate::deserialize_present_nonnull",
2610 skip_serializing_if = "::std::option::Option::is_none"
2611 )]
2612 pub text_as_polygons: ::std::option::Option<bool>,
2613 pub v_align: PlotterTextVAlign,
2614 pub x: crate::JavaScriptSafeInteger,
2615 pub y: crate::JavaScriptSafeInteger,
2616}
2617/**Typed render cache from an authored `(render_cache ...)` form, the Python
2618resolver, or the deterministic native hinted outline engine. `knockout` appears when the
2619knockout background restructure replaced the polygons.*/
2620///
2621/// <details><summary>JSON schema</summary>
2622///
2623/// ```json
2624///{
2625/// "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.",
2626/// "type": "object",
2627/// "required": [
2628/// "angle",
2629/// "coordinate_space",
2630/// "exact",
2631/// "polygons",
2632/// "schema",
2633/// "source",
2634/// "text",
2635/// "unit"
2636/// ],
2637/// "properties": {
2638/// "angle": {
2639/// "type": "number"
2640/// },
2641/// "coordinate_space": {
2642/// "$ref": "#/$defs/PlotterTextRenderCacheCoordinateSpace"
2643/// },
2644/// "exact": {
2645/// "type": "boolean"
2646/// },
2647/// "knockout": {
2648/// "type": "boolean"
2649/// },
2650/// "polygons": {
2651/// "type": "array",
2652/// "items": {
2653/// "$ref": "#/$defs/TextRenderCachePolygon"
2654/// }
2655/// },
2656/// "schema": {
2657/// "type": "string",
2658/// "const": "kicad.render_cache.v1"
2659/// },
2660/// "source": {
2661/// "$ref": "#/$defs/PlotterTextRenderCacheSource"
2662/// },
2663/// "text": {
2664/// "type": "string"
2665/// },
2666/// "unit": {
2667/// "type": "string",
2668/// "const": "nm"
2669/// }
2670/// },
2671/// "additionalProperties": false
2672///}
2673/// ```
2674/// </details>
2675#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2676#[serde(deny_unknown_fields)]
2677pub struct TextRenderCache {
2678 pub angle: f64,
2679 pub coordinate_space: PlotterTextRenderCacheCoordinateSpace,
2680 pub exact: bool,
2681 #[serde(
2682 default,
2683 deserialize_with = "crate::deserialize_present_nonnull",
2684 skip_serializing_if = "::std::option::Option::is_none"
2685 )]
2686 pub knockout: ::std::option::Option<bool>,
2687 pub polygons: ::std::vec::Vec<TextRenderCachePolygon>,
2688 pub schema: ::std::string::String,
2689 pub source: PlotterTextRenderCacheSource,
2690 pub text: ::std::string::String,
2691 pub unit: ::std::string::String,
2692}
2693///One render-cache polygon as ordered contours, exterior ring first.
2694///
2695/// <details><summary>JSON schema</summary>
2696///
2697/// ```json
2698///{
2699/// "description": "One render-cache polygon as ordered contours, exterior ring first.",
2700/// "type": "object",
2701/// "required": [
2702/// "contours"
2703/// ],
2704/// "properties": {
2705/// "contours": {
2706/// "type": "array",
2707/// "items": {
2708/// "type": "array",
2709/// "items": {
2710/// "$ref": "#/$defs/PlotterPoint"
2711/// }
2712/// }
2713/// }
2714/// },
2715/// "additionalProperties": false
2716///}
2717/// ```
2718/// </details>
2719#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2720#[serde(deny_unknown_fields)]
2721pub struct TextRenderCachePolygon {
2722 pub contours: ::std::vec::Vec<::std::vec::Vec<PlotterPoint>>,
2723}
2724/**Solid or decomposed segment shared by PCB, footprint, and drill producers.
2725Graphic state requires only layer. Drill state requires role plus layers;
2726NPTH drill state additionally requires all mask and pad-size hints. The
2727generated semantic validator enforces these mutually exclusive states.*/
2728///
2729/// <details><summary>JSON schema</summary>
2730///
2731/// ```json
2732///{
2733/// "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.",
2734/// "type": "object",
2735/// "required": [
2736/// "end_x",
2737/// "end_y",
2738/// "index",
2739/// "kind",
2740/// "start_x",
2741/// "start_y",
2742/// "width_nm"
2743/// ],
2744/// "properties": {
2745/// "end_x": {
2746/// "$ref": "#/$defs/JavaScriptSafeInteger"
2747/// },
2748/// "end_y": {
2749/// "$ref": "#/$defs/JavaScriptSafeInteger"
2750/// },
2751/// "index": {
2752/// "type": "integer",
2753/// "maximum": 4294967295.0,
2754/// "minimum": 0.0
2755/// },
2756/// "kind": {
2757/// "type": "string",
2758/// "const": "ThickSegment"
2759/// },
2760/// "layer": {
2761/// "type": "string"
2762/// },
2763/// "layers": {
2764/// "type": "array",
2765/// "items": {
2766/// "type": "string"
2767/// }
2768/// },
2769/// "mask_margin_nm": {
2770/// "$ref": "#/$defs/JavaScriptSafeInteger"
2771/// },
2772/// "pad_size_x_nm": {
2773/// "$ref": "#/$defs/JavaScriptSafeInteger"
2774/// },
2775/// "pad_size_y_nm": {
2776/// "$ref": "#/$defs/JavaScriptSafeInteger"
2777/// },
2778/// "role": {
2779/// "$ref": "#/$defs/PlotterDrillRole"
2780/// },
2781/// "start_x": {
2782/// "$ref": "#/$defs/JavaScriptSafeInteger"
2783/// },
2784/// "start_y": {
2785/// "$ref": "#/$defs/JavaScriptSafeInteger"
2786/// },
2787/// "stroke_color": {
2788/// "type": "string"
2789/// },
2790/// "width_nm": {
2791/// "$ref": "#/$defs/JavaScriptSafeInteger"
2792/// }
2793/// },
2794/// "additionalProperties": false
2795///}
2796/// ```
2797/// </details>
2798#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
2799#[serde(deny_unknown_fields)]
2800pub struct ThickSegmentOperation {
2801 pub end_x: crate::JavaScriptSafeInteger,
2802 pub end_y: crate::JavaScriptSafeInteger,
2803 pub index: u32,
2804 #[serde(deserialize_with = "crate::deserialize_thick_segment_kind")]
2805 pub kind: ::std::string::String,
2806 #[serde(
2807 default,
2808 deserialize_with = "crate::deserialize_present_nonnull",
2809 skip_serializing_if = "::std::option::Option::is_none"
2810 )]
2811 pub layer: ::std::option::Option<::std::string::String>,
2812 #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
2813 pub layers: ::std::vec::Vec<::std::string::String>,
2814 #[serde(
2815 default,
2816 deserialize_with = "crate::deserialize_present_nonnull",
2817 skip_serializing_if = "::std::option::Option::is_none"
2818 )]
2819 pub mask_margin_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
2820 #[serde(
2821 default,
2822 deserialize_with = "crate::deserialize_present_nonnull",
2823 skip_serializing_if = "::std::option::Option::is_none"
2824 )]
2825 pub pad_size_x_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
2826 #[serde(
2827 default,
2828 deserialize_with = "crate::deserialize_present_nonnull",
2829 skip_serializing_if = "::std::option::Option::is_none"
2830 )]
2831 pub pad_size_y_nm: ::std::option::Option<crate::JavaScriptSafeInteger>,
2832 #[serde(
2833 default,
2834 deserialize_with = "crate::deserialize_present_nonnull",
2835 skip_serializing_if = "::std::option::Option::is_none"
2836 )]
2837 pub role: ::std::option::Option<PlotterDrillRole>,
2838 pub start_x: crate::JavaScriptSafeInteger,
2839 pub start_y: crate::JavaScriptSafeInteger,
2840 #[serde(
2841 default,
2842 deserialize_with = "crate::deserialize_present_nonnull",
2843 skip_serializing_if = "::std::option::Option::is_none"
2844 )]
2845 pub stroke_color: ::std::option::Option<::std::string::String>,
2846 pub width_nm: crate::JavaScriptSafeInteger,
2847}