docs: include examples of using #[serde_as(deserialize_as = .. )]
and its counterpart
#766
Labels
#[serde_as(deserialize_as = .. )]
and its counterpart
#766
Hello.
Thanks for making this crate. I generally use it as a convenience for simple things but had to look a little deep to determine if the
#[serde_as]
macro accepted deserialization and serialization specific conversion.On the docs the field level attributes are mentioned very briefly, possibly too far down for most people to read. It may be helpful to newer users if they just see it in the example at the top of the page. Obviously, people should read the docs... but that is not always the case.
I was thinking something like below. Just a visual signpost to say "You can do this".
People familiar with serde and the attributes could intuit them working. For new users to serde and Rust in general, maybe not.
Maybe there is a good place to throw
no_default
on there as well. Is this considered worthwhile for an addition through a PR?The text was updated successfully, but these errors were encountered: