tokio-rs / prost

PROST! a Protocol Buffers implementation for the Rust Language
Apache License 2.0
3.95k stars 506 forks source link

feat(prost-types): Add `normalized` functions #1158

Closed caspermeijn closed 2 months ago

caspermeijn commented 2 months ago

Make normalize easier to use, by introducing Duration::normalized and Timestamp::normalized. They do the same as there normalize equivalents, but return a copy for ease of use.