1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use nix_compat_derive::nix_deserialize_remote; pub struct Value(String); impl From<String> for Value { fn from(s: String) -> Value { Value(s) } } nix_deserialize_remote!( #[nix()] Value ); fn main() {}