diff --git a/waku-bindings/src/general/mod.rs b/waku-bindings/src/general/mod.rs index 4c54dda..8b93c14 100644 --- a/waku-bindings/src/general/mod.rs +++ b/waku-bindings/src/general/mod.rs @@ -209,6 +209,13 @@ pub struct FilterSubscription { } impl FilterSubscription { + pub fn new(content_filters: Vec, pubsub_topic: Option) -> Self { + Self { + content_filters, + pubsub_topic, + } + } + pub fn content_filters(&self) -> &[ContentFilter] { &self.content_filters }