mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-03 14:33:06 +00:00
Added message and payload todos
This commit is contained in:
parent
816897430b
commit
1deddded8d
@ -39,6 +39,7 @@ impl<T> From<JsonResponse<T>> for Result<T> {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Properly type and deserialize payload form base64 encoded string
|
||||
/// Waku message in JSON format.
|
||||
/// as per the [specification](https://rfc.vac.dev/spec/36/#jsonmessage-type)
|
||||
#[derive(Clone, Serialize, Deserialize)]
|
||||
@ -69,6 +70,7 @@ impl WakuMessage {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: use proper types instead of base64 strings
|
||||
/// A payload once decoded, used when a received Waku Message is encrypted
|
||||
#[derive(Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user