11 lines
181 B
Rust
11 lines
181 B
Rust
use serde_derive::Serialize;
|
|
|
|
#[derive(Serialize)]
|
|
enum Enum {
|
|
#[serde(serialize_with = "serialize_some_unit_variant")]
|
|
#[serde(skip_serializing)]
|
|
Unit,
|
|
}
|
|
|
|
fn main() {}
|