mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-08 00:43:10 +00:00
Add constructor to filter subscription
This commit is contained in:
parent
b26eb9b22e
commit
9a79271454
@ -209,6 +209,13 @@ pub struct FilterSubscription {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl 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] {
|
pub fn content_filters(&self) -> &[ContentFilter] {
|
||||||
&self.content_filters
|
&self.content_filters
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user