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

kicad_monkey_contracts/generated/
footprint_plot_request.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///Resource-bounded footprint plotter operation. Source bytes are out of band.
28///
29/// <details><summary>JSON schema</summary>
30///
31/// ```json
32///{
33///  "$id": "urn:wavenumber:schema:kicad_monkey.footprint_plot.request:a0",
34///  "title": "Footprint plot request a0",
35///  "description": "Resource-bounded footprint plotter operation. Source bytes are out of band.",
36///  "type": "object",
37///  "required": [
38///    "max_depth",
39///    "max_metadata_forms",
40///    "max_operations",
41///    "max_output_bytes",
42///    "max_points",
43///    "max_source_bytes",
44///    "type",
45///    "version"
46///  ],
47///  "properties": {
48///    "document_id": {
49///      "type": "string"
50///    },
51///    "max_depth": {
52///      "type": "integer",
53///      "maximum": 4294967295.0,
54///      "minimum": 0.0
55///    },
56///    "max_metadata_forms": {
57///      "type": "integer",
58///      "maximum": 4294967295.0,
59///      "minimum": 0.0
60///    },
61///    "max_operations": {
62///      "type": "integer",
63///      "maximum": 4294967295.0,
64///      "minimum": 0.0
65///    },
66///    "max_output_bytes": {
67///      "type": "string"
68///    },
69///    "max_points": {
70///      "type": "integer",
71///      "maximum": 4294967295.0,
72///      "minimum": 0.0
73///    },
74///    "max_source_bytes": {
75///      "type": "string"
76///    },
77///    "max_text_bytes": {
78///      "type": "string"
79///    },
80///    "max_text_carriers": {
81///      "description": "Optional Phase 5 ceilings; older a0 requests receive bounded defaults.",
82///      "type": "integer",
83///      "maximum": 4294967295.0,
84///      "minimum": 0.0
85///    },
86///    "source_path": {
87///      "type": "string"
88///    },
89///    "type": {
90///      "type": "string",
91///      "const": "kicad_monkey.footprint_plot.request"
92///    },
93///    "version": {
94///      "type": "string",
95///      "const": "a0"
96///    }
97///  },
98///  "additionalProperties": false
99///}
100/// ```
101/// </details>
102#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
103#[serde(deny_unknown_fields)]
104pub struct FootprintPlotRequestA0 {
105    #[serde(
106        default,
107        deserialize_with = "crate::deserialize_present_nonnull",
108        skip_serializing_if = "::std::option::Option::is_none"
109    )]
110    pub document_id: ::std::option::Option<::std::string::String>,
111    pub max_depth: u32,
112    pub max_metadata_forms: u32,
113    pub max_operations: u32,
114    pub max_output_bytes: ::std::string::String,
115    pub max_points: u32,
116    pub max_source_bytes: ::std::string::String,
117    #[serde(
118        default,
119        deserialize_with = "crate::deserialize_present_nonnull",
120        skip_serializing_if = "::std::option::Option::is_none"
121    )]
122    pub max_text_bytes: ::std::option::Option<::std::string::String>,
123    ///Optional Phase 5 ceilings; older a0 requests receive bounded defaults.
124    #[serde(
125        default,
126        deserialize_with = "crate::deserialize_present_nonnull",
127        skip_serializing_if = "::std::option::Option::is_none"
128    )]
129    pub max_text_carriers: ::std::option::Option<u32>,
130    #[serde(
131        default,
132        deserialize_with = "crate::deserialize_present_nonnull",
133        skip_serializing_if = "::std::option::Option::is_none"
134    )]
135    pub source_path: ::std::option::Option<::std::string::String>,
136    #[serde(rename = "type")]
137    pub type_: ::std::string::String,
138    pub version: ::std::string::String,
139}