@@ -474,10 +474,10 @@ impl AsRef<u32> for Task {
474474
475475#[ derive( Debug , Serialize , Clone ) ]
476476pub struct TasksPaginationFilters {
477- // Maximum number of tasks to return.
477+ /// Maximum number of tasks to return.
478478 #[ serde( skip_serializing_if = "Option::is_none" ) ]
479479 limit : Option < u32 > ,
480- // The first task uid that should be returned.
480+ /// The first task uid that should be returned.
481481 #[ serde( skip_serializing_if = "Option::is_none" ) ]
482482 from : Option < u32 > ,
483483}
@@ -497,52 +497,52 @@ pub type TasksDeleteQuery<'a, Http> = TasksQuery<'a, TasksDeleteFilters, Http>;
497497pub struct TasksQuery < ' a , T , Http : HttpClient > {
498498 #[ serde( skip_serializing) ]
499499 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.
501501 #[ serde( skip_serializing_if = "Option::is_none" ) ]
502502 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.
504504 #[ serde( skip_serializing_if = "Option::is_none" ) ]
505505 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 .
507507 #[ serde( skip_serializing_if = "Option::is_none" , rename = "types" ) ]
508508 task_types : Option < Vec < & ' a str > > ,
509- // Uids of the tasks to retrieve.
509+ /// Uids of the tasks to retrieve.
510510 #[ serde( skip_serializing_if = "Option::is_none" ) ]
511511 uids : Option < Vec < & ' a u32 > > ,
512- // Uids of the tasks that canceled other tasks.
512+ /// Uids of the tasks that canceled other tasks.
513513 #[ serde( skip_serializing_if = "Option::is_none" ) ]
514514 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.
516516 #[ serde(
517517 skip_serializing_if = "Option::is_none" ,
518518 serialize_with = "time::serde::rfc3339::option::serialize"
519519 ) ]
520520 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.
522522 #[ serde(
523523 skip_serializing_if = "Option::is_none" ,
524524 serialize_with = "time::serde::rfc3339::option::serialize"
525525 ) ]
526526 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.
528528 #[ serde(
529529 skip_serializing_if = "Option::is_none" ,
530530 serialize_with = "time::serde::rfc3339::option::serialize"
531531 ) ]
532532 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.
534534 #[ serde(
535535 skip_serializing_if = "Option::is_none" ,
536536 serialize_with = "time::serde::rfc3339::option::serialize"
537537 ) ]
538538 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.
540540 #[ serde(
541541 skip_serializing_if = "Option::is_none" ,
542542 serialize_with = "time::serde::rfc3339::option::serialize"
543543 ) ]
544544 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.
546546 #[ serde(
547547 skip_serializing_if = "Option::is_none" ,
548548 serialize_with = "time::serde::rfc3339::option::serialize"
@@ -552,7 +552,7 @@ pub struct TasksQuery<'a, T, Http: HttpClient> {
552552 #[ serde( flatten) ]
553553 pagination : T ,
554554
555- // Whether to reverse the sort
555+ /// Whether to reverse the sort
556556 #[ serde( skip_serializing_if = "Option::is_none" ) ]
557557 reverse : Option < bool > ,
558558}
0 commit comments