#[doc = r" Error types."] pub mod error { #[doc = r" Error from a TryFrom or FromStr implementation."] pub struct ConversionError(::std::borrow::Cow<'static, str>); impl ::std::error::Error for ConversionError {} impl ::std::fmt::Display for ConversionError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> { ::std::fmt::Display::fmt(&self.0, f) } } impl ::std::fmt::Debug for ConversionError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> { ::std::fmt::Debug::fmt(&self.0, f) } } impl From<&'static str> for ConversionError { fn from(value: &'static str) -> Self { Self(value.into()) } } impl From for ConversionError { fn from(value: String) -> Self { Self(value.into()) } } } #[doc = "ArraySansItems"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"array\","] #[doc = " \"minItems\": 1,"] #[doc = " \"uniqueItems\": true"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ArraySansItems(pub Vec<::serde_json::Value>); impl ::std::ops::Deref for ArraySansItems { type Target = Vec<::serde_json::Value>; fn deref(&self) -> &Vec<::serde_json::Value> { &self.0 } } impl From for Vec<::serde_json::Value> { fn from(value: ArraySansItems) -> Self { value.0 } } impl From<&ArraySansItems> for ArraySansItems { fn from(value: &ArraySansItems) -> Self { value.clone() } } impl From> for ArraySansItems { fn from(value: Vec<::serde_json::Value>) -> Self { Self(value) } } #[doc = "LessSimpleTwoTuple"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": ["] #[doc = " {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " ],"] #[doc = " \"maxItems\": 2,"] #[doc = " \"minItems\": 2"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct LessSimpleTwoTuple(pub (String, String)); impl ::std::ops::Deref for LessSimpleTwoTuple { type Target = (String, String); fn deref(&self) -> &(String, String) { &self.0 } } impl From for (String, String) { fn from(value: LessSimpleTwoTuple) -> Self { value.0 } } impl From<&LessSimpleTwoTuple> for LessSimpleTwoTuple { fn from(value: &LessSimpleTwoTuple) -> Self { value.clone() } } impl From<(String, String)> for LessSimpleTwoTuple { fn from(value: (String, String)) -> Self { Self(value) } } #[doc = "SimpleTwoArray"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"maxItems\": 2,"] #[doc = " \"minItems\": 2"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SimpleTwoArray(pub [String; 2usize]); impl ::std::ops::Deref for SimpleTwoArray { type Target = [String; 2usize]; fn deref(&self) -> &[String; 2usize] { &self.0 } } impl From for [String; 2usize] { fn from(value: SimpleTwoArray) -> Self { value.0 } } impl From<&SimpleTwoArray> for SimpleTwoArray { fn from(value: &SimpleTwoArray) -> Self { value.clone() } } impl From<[String; 2usize]> for SimpleTwoArray { fn from(value: [String; 2usize]) -> Self { Self(value) } } #[doc = "SimpleTwoTuple"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": ["] #[doc = " {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " ],"] #[doc = " \"maxItems\": 2,"] #[doc = " \"minItems\": 2"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SimpleTwoTuple(pub (String, String)); impl ::std::ops::Deref for SimpleTwoTuple { type Target = (String, String); fn deref(&self) -> &(String, String) { &self.0 } } impl From for (String, String) { fn from(value: SimpleTwoTuple) -> Self { value.0 } } impl From<&SimpleTwoTuple> for SimpleTwoTuple { fn from(value: &SimpleTwoTuple) -> Self { value.clone() } } impl From<(String, String)> for SimpleTwoTuple { fn from(value: (String, String)) -> Self { Self(value) } } #[doc = "UnsimpleTwoTuple"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": ["] #[doc = " {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = " ],"] #[doc = " \"additionalItems\": {"] #[doc = " \"type\": \"string\""] #[doc = " },"] #[doc = " \"maxItems\": 2,"] #[doc = " \"minItems\": 2"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UnsimpleTwoTuple(pub (String, String)); impl ::std::ops::Deref for UnsimpleTwoTuple { type Target = (String, String); fn deref(&self) -> &(String, String) { &self.0 } } impl From for (String, String) { fn from(value: UnsimpleTwoTuple) -> Self { value.0 } } impl From<&UnsimpleTwoTuple> for UnsimpleTwoTuple { fn from(value: &UnsimpleTwoTuple) -> Self { value.clone() } } impl From<(String, String)> for UnsimpleTwoTuple { fn from(value: (String, String)) -> Self { Self(value) } } #[doc = "YoloTwoArray"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"array\","] #[doc = " \"additionalItems\": {"] #[doc = " \"type\": \"string\","] #[doc = " \"$comment\": \"ignored\""] #[doc = " },"] #[doc = " \"maxItems\": 2,"] #[doc = " \"minItems\": 2"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct YoloTwoArray(pub [::serde_json::Value; 2usize]); impl ::std::ops::Deref for YoloTwoArray { type Target = [::serde_json::Value; 2usize]; fn deref(&self) -> &[::serde_json::Value; 2usize] { &self.0 } } impl From for [::serde_json::Value; 2usize] { fn from(value: YoloTwoArray) -> Self { value.0 } } impl From<&YoloTwoArray> for YoloTwoArray { fn from(value: &YoloTwoArray) -> Self { value.clone() } } impl From<[::serde_json::Value; 2usize]> for YoloTwoArray { fn from(value: [::serde_json::Value; 2usize]) -> Self { Self(value) } } fn main() {}