waku-org / waku-rust-bindings

Rust wrapper over go-waku ffi
14 stars 6 forks source link

FilterSubscription public constructor #31

Closed hopeyen closed 1 year ago

hopeyen commented 1 year ago

Hey there! This is a quick fix request on struct FilterSubscription

To filter messages based on content topics on the Waku relay protocol (src/node/mod.rs/ WakuNodeHandle<Running>/filter_subscribe), I prepared variables typed Vec<ContentFilter> and Option<WakuPubSubTopic>. However, these two required fields in FilterSubscription are private, and the struct module did not have a public constructor function such as new implemented.

It would be great to have easier construction of the struct

Thanks!