Expand description
Copyright (c) 2022 Chris Riches (Licensed under MIT or Apache 2.0)
(De)serialize a unit struct as its name.
use serde_unit_struct::{Deserialize_unit_struct, Serialize_unit_struct};
#[derive(Deserialize_unit_struct, Serialize_unit_struct)]
struct Foo;
Derive Macrosยง
- Deserialize_
unit_ struct - Automatically derive Deserialize for the given unit struct.
- Serialize_
unit_ struct - Automatically derive Serialize for the given unit struct.