kicad_monkey_contracts/generated/footprint_edit_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///Focused source-preserving property edit; source bytes are supplied out of band.
28///
29/// <details><summary>JSON schema</summary>
30///
31/// ```json
32///{
33/// "$id": "urn:wavenumber:schema:kicad_monkey.footprint_edit.request:a0",
34/// "title": "Footprint edit request a0",
35/// "description": "Focused source-preserving property edit; source bytes are supplied out of band.",
36/// "type": "object",
37/// "required": [
38/// "max_depth",
39/// "max_output_bytes",
40/// "max_pads",
41/// "max_properties",
42/// "max_source_bytes",
43/// "property_name",
44/// "type",
45/// "value",
46/// "version"
47/// ],
48/// "properties": {
49/// "max_depth": {
50/// "type": "integer",
51/// "maximum": 4294967295.0,
52/// "minimum": 0.0
53/// },
54/// "max_output_bytes": {
55/// "type": "string"
56/// },
57/// "max_pads": {
58/// "type": "integer",
59/// "maximum": 4294967295.0,
60/// "minimum": 0.0
61/// },
62/// "max_properties": {
63/// "type": "integer",
64/// "maximum": 4294967295.0,
65/// "minimum": 0.0
66/// },
67/// "max_source_bytes": {
68/// "type": "string"
69/// },
70/// "property_name": {
71/// "type": "string"
72/// },
73/// "type": {
74/// "type": "string",
75/// "const": "kicad_monkey.footprint_edit.request"
76/// },
77/// "value": {
78/// "type": "string"
79/// },
80/// "version": {
81/// "type": "string",
82/// "const": "a0"
83/// }
84/// },
85/// "additionalProperties": false
86///}
87/// ```
88/// </details>
89#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
90#[serde(deny_unknown_fields)]
91pub struct FootprintEditRequestA0 {
92 pub max_depth: u32,
93 pub max_output_bytes: ::std::string::String,
94 pub max_pads: u32,
95 pub max_properties: u32,
96 pub max_source_bytes: ::std::string::String,
97 pub property_name: ::std::string::String,
98 #[serde(rename = "type")]
99 pub type_: ::std::string::String,
100 pub value: ::std::string::String,
101 pub version: ::std::string::String,
102}