use serde::{Deserialize, Serialize}; struct NamedUnit; #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_NamedUnit: () = { #[allow(unknown_lints)] #[allow(rust_2018_idioms)] extern crate serde as _serde; #[automatically_derived] impl _serde::Serialize for NamedUnit { fn serialize<__S>(&self, __serializer: __S) -> _serde::export::Result<__S::Ok, __S::Error> where __S: _serde::Serializer, { _serde::Serializer::serialize_unit_struct(__serializer, "NamedUnit") } } }; #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_NamedUnit: () = { #[allow(unknown_lints)] #[allow(rust_2018_idioms)] extern crate serde as _serde; #[automatically_derived] impl<'de> _serde::Deserialize<'de> for NamedUnit { fn deserialize<__D>(__deserializer: __D) -> _serde::export::Result where __D: _serde::Deserializer<'de>, { struct __Visitor; impl<'de> _serde::de::Visitor<'de> for __Visitor { type Value = NamedUnit; fn expecting( &self, __formatter: &mut _serde::export::Formatter, ) -> _serde::export::fmt::Result { _serde::export::Formatter::write_str(__formatter, "unit struct NamedUnit") } #[inline] fn visit_unit<__E>(self) -> _serde::export::Result where __E: _serde::de::Error, { _serde::export::Ok(NamedUnit) } } _serde::Deserializer::deserialize_unit_struct(__deserializer, "NamedUnit", __Visitor) } } };