Use an Option around optional Reject message data
And replace Timestamp with chrono::DateTime
This commit is contained in:
parent
adc421f7fe
commit
cc9da18554
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue