#string #serde #phone #deserializing #deserialize #phone-number #numbers

deserialize_custom_strings

utility functions for deserializing custom strings using serde (e.g. emails or phone numbers)

4 releases

0.1.3 Sep 9, 2021
0.1.2 Jun 7, 2021
0.1.1 May 10, 2021
0.1.0 May 10, 2021

#2128 in Encoding

MIT license

6KB
71 lines

deserialize_custom_strings

Utility functions for deserializing custom strings using serde, e.g. for deserializing email addresses or phone numbers.

TODO

  • deserialize_u64 -> deserialize_to_type<T: FromStr>

  • make deserialization fail when format is incorrect

Dependencies

~2.6–4MB
~77K SLoC