#[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 = "Node"] #[doc = r""] #[doc = r"
JSON schema"] #[doc = r""] #[doc = r" ```json"] #[doc = "{"] #[doc = " \"title\": \"node\","] #[doc = " \"type\": \"object\","] #[doc = " \"properties\": {"] #[doc = " \"children\": {"] #[doc = " \"type\": \"array\","] #[doc = " \"items\": {"] #[doc = " \"$ref\": \"#\""] #[doc = " }"] #[doc = " },"] #[doc = " \"value\": {"] #[doc = " \"type\": \"integer\""] #[doc = " }"] #[doc = " },"] #[doc = " \"$comment\": \"validate references to the whole\""] #[doc = "}"] #[doc = r" ```"] #[doc = r"
"] #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Node { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub children: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] pub value: Option, } impl From<&Node> for Node { fn from(value: &Node) -> Self { value.clone() } } fn main() {}