@@ -474,10 +474,10 @@ impl AsRef<u32> for Task {
474
474
475
475
#[ derive( Debug , Serialize , Clone ) ]
476
476
pub struct TasksPaginationFilters {
477
- // Maximum number of tasks to return.
477
+ /// Maximum number of tasks to return.
478
478
#[ serde( skip_serializing_if = "Option::is_none" ) ]
479
479
limit : Option < u32 > ,
480
- // The first task uid that should be returned.
480
+ /// The first task uid that should be returned.
481
481
#[ serde( skip_serializing_if = "Option::is_none" ) ]
482
482
from : Option < u32 > ,
483
483
}
@@ -497,52 +497,52 @@ pub type TasksDeleteQuery<'a, Http> = TasksQuery<'a, TasksDeleteFilters, Http>;
497
497
pub struct TasksQuery < ' a , T , Http : HttpClient > {
498
498
#[ serde( skip_serializing) ]
499
499
client : & ' a Client < Http > ,
500
- // Index uids array to only retrieve the tasks of the indexes.
500
+ /// Index uids array to only retrieve the tasks of the indexes.
501
501
#[ serde( skip_serializing_if = "Option::is_none" ) ]
502
502
index_uids : Option < Vec < & ' a str > > ,
503
- // Statuses array to only retrieve the tasks with these statuses.
503
+ /// Statuses array to only retrieve the tasks with these statuses.
504
504
#[ serde( skip_serializing_if = "Option::is_none" ) ]
505
505
statuses : Option < Vec < & ' a str > > ,
506
- // Types array to only retrieve the tasks with these [TaskType] .
506
+ /// Types array to only retrieve the tasks with these [` TaskType`]s .
507
507
#[ serde( skip_serializing_if = "Option::is_none" , rename = "types" ) ]
508
508
task_types : Option < Vec < & ' a str > > ,
509
- // Uids of the tasks to retrieve.
509
+ /// Uids of the tasks to retrieve.
510
510
#[ serde( skip_serializing_if = "Option::is_none" ) ]
511
511
uids : Option < Vec < & ' a u32 > > ,
512
- // Uids of the tasks that canceled other tasks.
512
+ /// Uids of the tasks that canceled other tasks.
513
513
#[ serde( skip_serializing_if = "Option::is_none" ) ]
514
514
canceled_by : Option < Vec < & ' a u32 > > ,
515
- // Date to retrieve all tasks that were enqueued before it.
515
+ /// Date to retrieve all tasks that were enqueued before it.
516
516
#[ serde(
517
517
skip_serializing_if = "Option::is_none" ,
518
518
serialize_with = "time::serde::rfc3339::option::serialize"
519
519
) ]
520
520
before_enqueued_at : Option < OffsetDateTime > ,
521
- // Date to retrieve all tasks that were enqueued after it.
521
+ /// Date to retrieve all tasks that were enqueued after it.
522
522
#[ serde(
523
523
skip_serializing_if = "Option::is_none" ,
524
524
serialize_with = "time::serde::rfc3339::option::serialize"
525
525
) ]
526
526
after_enqueued_at : Option < OffsetDateTime > ,
527
- // Date to retrieve all tasks that were started before it.
527
+ /// Date to retrieve all tasks that were started before it.
528
528
#[ serde(
529
529
skip_serializing_if = "Option::is_none" ,
530
530
serialize_with = "time::serde::rfc3339::option::serialize"
531
531
) ]
532
532
before_started_at : Option < OffsetDateTime > ,
533
- // Date to retrieve all tasks that were started after it.
533
+ /// Date to retrieve all tasks that were started after it.
534
534
#[ serde(
535
535
skip_serializing_if = "Option::is_none" ,
536
536
serialize_with = "time::serde::rfc3339::option::serialize"
537
537
) ]
538
538
after_started_at : Option < OffsetDateTime > ,
539
- // Date to retrieve all tasks that were finished before it.
539
+ /// Date to retrieve all tasks that were finished before it.
540
540
#[ serde(
541
541
skip_serializing_if = "Option::is_none" ,
542
542
serialize_with = "time::serde::rfc3339::option::serialize"
543
543
) ]
544
544
before_finished_at : Option < OffsetDateTime > ,
545
- // Date to retrieve all tasks that were finished after it.
545
+ /// Date to retrieve all tasks that were finished after it.
546
546
#[ serde(
547
547
skip_serializing_if = "Option::is_none" ,
548
548
serialize_with = "time::serde::rfc3339::option::serialize"
@@ -552,7 +552,7 @@ pub struct TasksQuery<'a, T, Http: HttpClient> {
552
552
#[ serde( flatten) ]
553
553
pagination : T ,
554
554
555
- // Whether to reverse the sort
555
+ /// Whether to reverse the sort
556
556
#[ serde( skip_serializing_if = "Option::is_none" ) ]
557
557
reverse : Option < bool > ,
558
558
}
0 commit comments