mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-02 14:03:12 +00:00
Add constructor to filter subscription (#34)
This commit is contained in:
parent
b26eb9b22e
commit
d4136fd72b
@ -209,6 +209,13 @@ pub struct FilterSubscription {
|
||||
}
|
||||
|
||||
impl FilterSubscription {
|
||||
pub fn new(content_filters: Vec<ContentFilter>, pubsub_topic: Option<WakuPubSubTopic>) -> Self {
|
||||
Self {
|
||||
content_filters,
|
||||
pubsub_topic,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn content_filters(&self) -> &[ContentFilter] {
|
||||
&self.content_filters
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user