Open johnhurt opened 2 weeks ago
Thanks for the PR!
Ooooooh, I see what you mean. Let me tackle those one at a time
#[valuable(format = "{}")]
to just #[valuable(debug)]
to avoid alloc
feature that would gate the #[valuable(debug)]
attribute?Adding Debug
/Display
(or Debugable
/Displayable
mentioned in https://github.com/tokio-rs/valuable/issues/43#issuecomment-854111197) variant to valuable::Value
and then adding #[valuable(debug)]
/#[valuable(display)]
that pass the field as Value::Debug
/Value::Display
to derive seem to good idea to me.
Build on the newly-introduced derive-attribute framework to allow fields in structs to be written to the final value as a formatted string instead of their actual value. This allows for types that don't (and can't or won't) implement
Valuable
to be included in the value