2019-10-31 13:32:34 -05:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
enum Void {}
|
2020-05-05 19:22:53 -05:00
|
|
|
#[doc(hidden)]
|
2019-10-31 13:32:34 -05:00
|
|
|
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
|
2020-06-07 00:41:07 -05:00
|
|
|
const _: () = {
|
2020-05-05 19:22:53 -05:00
|
|
|
#[allow(rust_2018_idioms, clippy::useless_attribute)]
|
2019-10-31 13:32:34 -05:00
|
|
|
extern crate serde as _serde;
|
|
|
|
#[automatically_derived]
|
|
|
|
impl _serde::Serialize for Void {
|
2021-01-08 21:35:52 -06:00
|
|
|
fn serialize<__S>(
|
|
|
|
&self,
|
|
|
|
__serializer: __S,
|
|
|
|
) -> _serde::__private::Result<__S::Ok, __S::Error>
|
2019-10-31 13:32:34 -05:00
|
|
|
where
|
|
|
|
__S: _serde::Serializer,
|
|
|
|
{
|
|
|
|
match *self {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2020-05-05 19:22:53 -05:00
|
|
|
#[doc(hidden)]
|
2019-10-31 13:32:34 -05:00
|
|
|
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
|
2020-06-07 00:41:07 -05:00
|
|
|
const _: () = {
|
2020-05-05 19:22:53 -05:00
|
|
|
#[allow(rust_2018_idioms, clippy::useless_attribute)]
|
2019-10-31 13:32:34 -05:00
|
|
|
extern crate serde as _serde;
|
|
|
|
#[automatically_derived]
|
|
|
|
impl<'de> _serde::Deserialize<'de> for Void {
|
2021-01-08 21:35:52 -06:00
|
|
|
fn deserialize<__D>(__deserializer: __D) -> _serde::__private::Result<Self, __D::Error>
|
2019-10-31 13:32:34 -05:00
|
|
|
where
|
|
|
|
__D: _serde::Deserializer<'de>,
|
|
|
|
{
|
|
|
|
#[allow(non_camel_case_types)]
|
|
|
|
enum __Field {}
|
|
|
|
struct __FieldVisitor;
|
|
|
|
impl<'de> _serde::de::Visitor<'de> for __FieldVisitor {
|
|
|
|
type Value = __Field;
|
|
|
|
fn expecting(
|
|
|
|
&self,
|
2021-01-08 21:35:52 -06:00
|
|
|
__formatter: &mut _serde::__private::Formatter,
|
|
|
|
) -> _serde::__private::fmt::Result {
|
|
|
|
_serde::__private::Formatter::write_str(__formatter, "variant identifier")
|
2019-10-31 13:32:34 -05:00
|
|
|
}
|
2021-01-08 21:35:52 -06:00
|
|
|
fn visit_u64<__E>(self, __value: u64) -> _serde::__private::Result<Self::Value, __E>
|
2019-10-31 13:32:34 -05:00
|
|
|
where
|
|
|
|
__E: _serde::de::Error,
|
|
|
|
{
|
|
|
|
match __value {
|
2021-01-08 21:35:52 -06:00
|
|
|
_ => _serde::__private::Err(_serde::de::Error::invalid_value(
|
2019-10-31 13:32:34 -05:00
|
|
|
_serde::de::Unexpected::Unsigned(__value),
|
|
|
|
&"variant index 0 <= i < 0",
|
|
|
|
)),
|
|
|
|
}
|
|
|
|
}
|
2021-01-08 21:35:52 -06:00
|
|
|
fn visit_str<__E>(
|
|
|
|
self,
|
|
|
|
__value: &str,
|
|
|
|
) -> _serde::__private::Result<Self::Value, __E>
|
2019-10-31 13:32:34 -05:00
|
|
|
where
|
|
|
|
__E: _serde::de::Error,
|
|
|
|
{
|
|
|
|
match __value {
|
2021-01-08 21:35:52 -06:00
|
|
|
_ => _serde::__private::Err(_serde::de::Error::unknown_variant(
|
2019-10-31 13:32:34 -05:00
|
|
|
__value, VARIANTS,
|
|
|
|
)),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fn visit_bytes<__E>(
|
|
|
|
self,
|
|
|
|
__value: &[u8],
|
2021-01-08 21:35:52 -06:00
|
|
|
) -> _serde::__private::Result<Self::Value, __E>
|
2019-10-31 13:32:34 -05:00
|
|
|
where
|
|
|
|
__E: _serde::de::Error,
|
|
|
|
{
|
|
|
|
match __value {
|
|
|
|
_ => {
|
2021-01-08 21:35:52 -06:00
|
|
|
let __value = &_serde::__private::from_utf8_lossy(__value);
|
|
|
|
_serde::__private::Err(_serde::de::Error::unknown_variant(
|
2019-10-31 13:32:34 -05:00
|
|
|
__value, VARIANTS,
|
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
impl<'de> _serde::Deserialize<'de> for __Field {
|
|
|
|
#[inline]
|
2021-01-08 21:35:52 -06:00
|
|
|
fn deserialize<__D>(
|
|
|
|
__deserializer: __D,
|
|
|
|
) -> _serde::__private::Result<Self, __D::Error>
|
2019-10-31 13:32:34 -05:00
|
|
|
where
|
|
|
|
__D: _serde::Deserializer<'de>,
|
|
|
|
{
|
|
|
|
_serde::Deserializer::deserialize_identifier(__deserializer, __FieldVisitor)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
struct __Visitor<'de> {
|
2021-01-08 21:35:52 -06:00
|
|
|
marker: _serde::__private::PhantomData<Void>,
|
|
|
|
lifetime: _serde::__private::PhantomData<&'de ()>,
|
2019-10-31 13:32:34 -05:00
|
|
|
}
|
|
|
|
impl<'de> _serde::de::Visitor<'de> for __Visitor<'de> {
|
|
|
|
type Value = Void;
|
|
|
|
fn expecting(
|
|
|
|
&self,
|
2021-01-08 21:35:52 -06:00
|
|
|
__formatter: &mut _serde::__private::Formatter,
|
|
|
|
) -> _serde::__private::fmt::Result {
|
|
|
|
_serde::__private::Formatter::write_str(__formatter, "enum Void")
|
2019-10-31 13:32:34 -05:00
|
|
|
}
|
|
|
|
fn visit_enum<__A>(
|
|
|
|
self,
|
|
|
|
__data: __A,
|
2021-01-08 21:35:52 -06:00
|
|
|
) -> _serde::__private::Result<Self::Value, __A::Error>
|
2019-10-31 13:32:34 -05:00
|
|
|
where
|
|
|
|
__A: _serde::de::EnumAccess<'de>,
|
|
|
|
{
|
2021-01-08 21:35:52 -06:00
|
|
|
_serde::__private::Result::map(
|
2019-10-31 13:32:34 -05:00
|
|
|
_serde::de::EnumAccess::variant::<__Field>(__data),
|
|
|
|
|(__impossible, _)| match __impossible {},
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const VARIANTS: &'static [&'static str] = &[];
|
|
|
|
_serde::Deserializer::deserialize_enum(
|
|
|
|
__deserializer,
|
|
|
|
"Void",
|
|
|
|
VARIANTS,
|
|
|
|
__Visitor {
|
2021-01-08 21:35:52 -06:00
|
|
|
marker: _serde::__private::PhantomData::<Void>,
|
|
|
|
lifetime: _serde::__private::PhantomData,
|
2019-10-31 13:32:34 -05:00
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2019-11-03 06:08:39 -06:00
|
|
|
};
|