mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-03 22:43:07 +00:00
More general type aliases
This commit is contained in:
parent
da3596e8f1
commit
be030f2a1f
@ -5,6 +5,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
|
|
||||||
pub type PubsubTopic = String;
|
pub type PubsubTopic = String;
|
||||||
pub type ContentTopic = String;
|
pub type ContentTopic = String;
|
||||||
|
pub type WakuMessageVersion = usize;
|
||||||
|
|
||||||
/// JsonResponse wrapper.
|
/// JsonResponse wrapper.
|
||||||
/// `go-waku` ffi returns this type as a `char *` as per the [specification](https://rfc.vac.dev/spec/36/#jsonresponse-type)
|
/// `go-waku` ffi returns this type as a `char *` as per the [specification](https://rfc.vac.dev/spec/36/#jsonresponse-type)
|
||||||
@ -38,7 +39,7 @@ pub struct WakuMessage {
|
|||||||
/// The content topic to be set on the message
|
/// The content topic to be set on the message
|
||||||
content_topic: ContentTopic,
|
content_topic: ContentTopic,
|
||||||
/// The Waku Message version number
|
/// The Waku Message version number
|
||||||
version: usize,
|
version: WakuMessageVersion,
|
||||||
/// Unix timestamp in nanoseconds
|
/// Unix timestamp in nanoseconds
|
||||||
timestamp: usize,
|
timestamp: usize,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user