Skip to content

Commit

Permalink
filter: Add event method
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Jul 16, 2024
1 parent c870c70 commit 8ef4b9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ impl FilterBuilder {
self
}

pub fn event(&mut self, id: &[u8; 32]) -> &mut Self {
self.start_tag_field('e');
self.add_id_element(id);
self.end_field();
self
}

pub fn ids(&mut self, ids: Vec<[u8; 32]>) -> &mut Self {
self.start_ids_field();
for ref id in ids {
Expand Down

0 comments on commit 8ef4b9c

Please sign in to comment.