Use an Option around optional Reject message data

And replace Timestamp with chrono::DateTime
This commit is contained in:
Deirdre Connolly 2019-09-12 17:55:51 -04:00
parent 90c523594d
commit 5506c7e13c
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ pub enum Message {
//
// Q: can we tell Rust that this field is optional? Or just
// default its value to an empty array, I guess.
data: [u8; 32],
data: Option<[u8; 32]>,
},
/// An `addr` message.