macro_rules! as_serde { ($capture:expr) => { ... }; }
Get a value from a type implementing serde::Serialize.
serde::Serialize