serdeserializerquick_unsupported

Crates.io License

Helper for implementing a serializer that supports a reduced subset of the serde data model

Often times you need to implement a serializer where a bunch of input types are unexpected/unsupported This convenience macro allows you to declare those more easily:

```rust use serdeserializerquickunsupported::serializerunsupported;

struct MySerializer; impl serde::Serializer for MySerializer { type Ok = (); type Error = serde::de::value::Error; serializerunsupported! { err = (::custom("Unexpected input")); bool i8 i16 i32 i64 u8 u16 u32 u64 f32 f64 char str bytes none some unit unitstruct unitvariant newtypestruct newtypevariant seq tuple tuplestruct tuplevariant map struct structvariant i128 u128 } } ``` Just remove the stuff you want to not error