mirror of
https://github.com/waku-org/waku-rust-bindings.git
synced 2025-01-12 23:54:15 +00:00
fix: default to empty vec if meta field not present (#59)
This commit is contained in:
parent
6a2d449d7d
commit
98144f762f
@ -89,7 +89,7 @@ pub struct WakuMessage {
|
|||||||
version: WakuMessageVersion,
|
version: WakuMessageVersion,
|
||||||
/// Unix timestamp in nanoseconds
|
/// Unix timestamp in nanoseconds
|
||||||
timestamp: usize,
|
timestamp: usize,
|
||||||
#[serde(with = "base64_serde")]
|
#[serde(with = "base64_serde", default = "Vec::new")]
|
||||||
meta: Vec<u8>,
|
meta: Vec<u8>,
|
||||||
ephemeral: bool,
|
ephemeral: bool,
|
||||||
// TODO: implement RLN fields
|
// TODO: implement RLN fields
|
||||||
|
Loading…
x
Reference in New Issue
Block a user