File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,8 @@ impl Filter {
302
302
303
303
/// Add coordinate
304
304
///
305
+ /// Query for `a` tag.
306
+ ///
305
307
/// <https://github.com/nostr-protocol/nips/blob/master/01.md>
306
308
pub fn coordinate ( self : Arc < Self > , coordinate : & Coordinate ) -> Self {
307
309
let mut builder = unwrap_or_clone_arc ( self ) ;
@@ -311,6 +313,8 @@ impl Filter {
311
313
312
314
/// Add coordinates
313
315
///
316
+ /// Query for `a` tags.
317
+ ///
314
318
/// <https://github.com/nostr-protocol/nips/blob/master/01.md>
315
319
pub fn coordinates ( self : Arc < Self > , coordinates : Vec < Arc < Coordinate > > ) -> Self {
316
320
let mut builder = unwrap_or_clone_arc ( self ) ;
@@ -322,6 +326,8 @@ impl Filter {
322
326
323
327
/// Remove coordinates
324
328
///
329
+ /// Remove `a` tags.
330
+ ///
325
331
/// <https://github.com/nostr-protocol/nips/blob/master/01.md>
326
332
pub fn remove_coordinates ( self : Arc < Self > , coordinates : Vec < Arc < Coordinate > > ) -> Self {
327
333
let mut builder = unwrap_or_clone_arc ( self ) ;
Original file line number Diff line number Diff line change @@ -358,13 +358,17 @@ impl JsFilter {
358
358
359
359
/// Add coordinate
360
360
///
361
+ /// Query for `a` tag.
362
+ ///
361
363
/// <https://github.com/nostr-protocol/nips/blob/master/01.md>
362
364
pub fn coordinate ( self , coordinate : & JsCoordinate ) -> Self {
363
365
self . inner . coordinate ( coordinate. deref ( ) ) . into ( )
364
366
}
365
367
366
368
/// Set coordinates
367
369
///
370
+ /// Query for `a` tags.
371
+ ///
368
372
/// <https://github.com/nostr-protocol/nips/blob/master/01.md>
369
373
pub fn coordinates ( self , coordinates : Vec < JsCoordinate > ) -> Self {
370
374
self . inner
@@ -374,6 +378,8 @@ impl JsFilter {
374
378
375
379
/// Remove coordinates
376
380
///
381
+ /// Remove `a` tags.
382
+ ///
377
383
/// <https://github.com/nostr-protocol/nips/blob/master/01.md>
378
384
#[ wasm_bindgen( js_name = removeCoordinates) ]
379
385
pub fn remove_coordinates ( self , coordinates : Vec < JsCoordinate > ) -> Self {
Original file line number Diff line number Diff line change @@ -556,6 +556,8 @@ impl Filter {
556
556
557
557
/// Add coordinate
558
558
///
559
+ /// Query for `a` tag.
560
+ ///
559
561
/// <https://github.com/nostr-protocol/nips/blob/master/01.md>
560
562
#[ inline]
561
563
pub fn coordinate ( self , coordinate : & Coordinate ) -> Self {
@@ -567,6 +569,8 @@ impl Filter {
567
569
568
570
/// Add coordinates
569
571
///
572
+ /// Query for `a` tags.
573
+ ///
570
574
/// <https://github.com/nostr-protocol/nips/blob/master/01.md>
571
575
#[ inline]
572
576
pub fn coordinates < ' a , I > ( self , coordinates : I ) -> Self
@@ -581,6 +585,8 @@ impl Filter {
581
585
582
586
/// Remove coordinates
583
587
///
588
+ /// Remove `a` tags.
589
+ ///
584
590
/// <https://github.com/nostr-protocol/nips/blob/master/01.md>
585
591
#[ inline]
586
592
pub fn remove_coordinates < ' a , I > ( self , coordinates : I ) -> Self
You can’t perform that action at this time.
0 commit comments