kicad_monkey_contracts/generated/
font_bundle_manifest.rs1pub mod error {
3 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#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
87#[serde(deny_unknown_fields)]
88pub struct FontBundleEntry {
89 pub aliases: ::std::vec::Vec<::std::string::String>,
90 pub face_index: u32,
91 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
92 pub family: ::std::option::Option<::std::string::String>,
93 pub id: crate::StableTextId,
94 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
95 pub postscript_name: ::std::option::Option<::std::string::String>,
96 pub sha256: Sha256Hex,
97 pub slot: u32,
98 #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
99 pub style: ::std::option::Option<::std::string::String>,
100 pub variations: ::std::vec::Vec<FontVariationCoordinate>,
101}
102#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
143#[serde(deny_unknown_fields)]
144pub struct FontBundleManifestA0 {
145 pub fonts: ::std::vec::Vec<FontBundleEntry>,
146 pub schema: ::std::string::String,
147 #[serde(rename = "type")]
148 pub type_: ::std::string::String,
149 pub version: ::std::string::String,
150}
151#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
176#[serde(deny_unknown_fields)]
177pub struct FontVariationCoordinate {
178 pub axis: OpenTypeTag,
179 pub value: crate::FiniteFloat,
180}
181#[derive(
193 ::serde::Deserialize, ::serde::Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd,
194)]
195#[serde(transparent)]
196pub struct OpenTypeTag(pub ::std::string::String);
197impl ::std::ops::Deref for OpenTypeTag {
198 type Target = ::std::string::String;
199 fn deref(&self) -> &::std::string::String {
200 &self.0
201 }
202}
203impl ::std::convert::From<OpenTypeTag> for ::std::string::String {
204 fn from(value: OpenTypeTag) -> Self {
205 value.0
206 }
207}
208impl ::std::convert::From<::std::string::String> for OpenTypeTag {
209 fn from(value: ::std::string::String) -> Self {
210 Self(value)
211 }
212}
213impl ::std::str::FromStr for OpenTypeTag {
214 type Err = ::std::convert::Infallible;
215 fn from_str(value: &str) -> ::std::result::Result<Self, Self::Err> {
216 Ok(Self(value.to_string()))
217 }
218}
219impl ::std::fmt::Display for OpenTypeTag {
220 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
221 self.0.fmt(f)
222 }
223}
224#[derive(
236 ::serde::Deserialize, ::serde::Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd,
237)]
238#[serde(transparent)]
239pub struct Sha256Hex(pub ::std::string::String);
240impl ::std::ops::Deref for Sha256Hex {
241 type Target = ::std::string::String;
242 fn deref(&self) -> &::std::string::String {
243 &self.0
244 }
245}
246impl ::std::convert::From<Sha256Hex> for ::std::string::String {
247 fn from(value: Sha256Hex) -> Self {
248 value.0
249 }
250}
251impl ::std::convert::From<::std::string::String> for Sha256Hex {
252 fn from(value: ::std::string::String) -> Self {
253 Self(value)
254 }
255}
256impl ::std::str::FromStr for Sha256Hex {
257 type Err = ::std::convert::Infallible;
258 fn from_str(value: &str) -> ::std::result::Result<Self, Self::Err> {
259 Ok(Self(value.to_string()))
260 }
261}
262impl ::std::fmt::Display for Sha256Hex {
263 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
264 self.0.fmt(f)
265 }
266}