#[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 = "ArrayBs"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"array\","] #[doc = " \"multipleOf\": 100.0,"] #[doc = " \"maxLength\": 100,"] #[doc = " \"items\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " },"] #[doc = " \"properties\": {"] #[doc = " \"ok\": {}"] #[doc = " },"] #[doc = " \"additionalProperties\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ArrayBs(pub Vec); impl ::std::ops::Deref for ArrayBs { type Target = Vec; fn deref(&self) -> &Vec { &self.0 } } impl From for Vec { fn from(value: ArrayBs) -> Self { value.0 } } impl From<&ArrayBs> for ArrayBs { fn from(value: &ArrayBs) -> Self { value.clone() } } impl From> for ArrayBs { fn from(value: Vec) -> Self { Self(value) } } #[doc = "IntegerBs"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"integer\","] #[doc = " \"minimum\": 0.0,"] #[doc = " \"maxLength\": 100,"] #[doc = " \"properties\": {"] #[doc = " \"ok\": {}"] #[doc = " },"] #[doc = " \"additionalProperties\": {"] #[doc = " \"type\": \"string\""] #[doc = " }"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IntegerBs(pub u64); impl ::std::ops::Deref for IntegerBs { type Target = u64; fn deref(&self) -> &u64 { &self.0 } } impl From for u64 { fn from(value: IntegerBs) -> Self { value.0 } } impl From<&IntegerBs> for IntegerBs { fn from(value: &IntegerBs) -> Self { value.clone() } } impl From for IntegerBs { fn from(value: u64) -> Self { Self(value) } } impl std::str::FromStr for IntegerBs { type Err = ::Err; fn from_str(value: &str) -> Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for IntegerBs { type Error = ::Err; fn try_from(value: &str) -> Result { value.parse() } } impl std::convert::TryFrom<&String> for IntegerBs { type Error = ::Err; fn try_from(value: &String) -> Result { value.parse() } } impl std::convert::TryFrom for IntegerBs { type Error = ::Err; fn try_from(value: String) -> Result { value.parse() } } impl ::std::fmt::Display for IntegerBs { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { self.0.fmt(f) } } #[doc = "ObjectBs"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"type\": \"object\","] #[doc = " \"multipleOf\": 100.0,"] #[doc = " \"maxLength\": 100,"] #[doc = " \"maxItems\": 100,"] #[doc = " \"properties\": {"] #[doc = " \"ok\": {"] #[doc = " \"type\": \"boolean\""] #[doc = " }"] #[doc = " }"] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ObjectBs { #[serde(default, skip_serializing_if = "Option::is_none")] pub ok: Option, } impl From<&ObjectBs> for ObjectBs { fn from(value: &ObjectBs) -> Self { value.clone() } } fn main() {}