You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While implementing the jiff types, I noticed that a lot of Facet implementations can be easily created if they implement core::str::FromStr and core::fmt::Display.
So I was thinking maybe add an attribute to the derive macro to simplify this?
I would definitely like something like this for de/serialization! In the Serde world, this isn't something natively supported, so there are at least a few third-party crates to help bridge between Display/FromStr and Serde impls (serde_with is the one I am most familiar with)
Internally, for facet-serialize, this match statement feels like it would do better if it could just check "does this shape have the as_string shape attribute?" or something, instead of special-casing a few shape affinities
While implementing the
jiff
types, I noticed that a lot ofFacet
implementations can be easily created if they implementcore::str::FromStr
andcore::fmt::Display
.So I was thinking maybe add an attribute to the derive macro to simplify this?
Something like:
Not entirely sure about the
as_string
naming.The text was updated successfully, but these errors were encountered: