serde_nanos 0.1.4

Wrapper to process duration and timestamps as nanoseconds
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
A serde wrapper that can be used to serialize durations as nanoseconds.
It's often useful together with serde_json to communicate with JSON protocols.

# Example

```rust
use std::time::Duration;

pub struct Message {
    #[serde(with = "serde_nanos")]
    expires_in: Duration,
}
```