1 2 3 4 5 6 7 8 9
use poly_enum::PolyEnum; #[derive(PolyEnum)] enum Value<'a> { #[poly_enum(Ref)] Str(&'a str), #[poly_enum(Owned)] String(String), }