Skip to content

Commit 89b3899

Browse files
Make doc-comments consistently be doc-commoents
1 parent 52b71ff commit 89b3899

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

src/errors.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ pub enum Error {
4949
#[error("HTTP request failed: {}", .0)]
5050
HttpError(#[from] reqwest::Error),
5151

52-
// The library formatting the query parameters encountered an error.
52+
/// The library formatting the query parameters encountered an error.
5353
#[error("Internal Error: could not parse the query parameters: {}", .0)]
5454
Yaup(#[from] yaup::Error),
5555

56-
// The library validating the format of an uuid.
56+
/// The library validating the format of an uuid.
5757
#[cfg(not(target_arch = "wasm32"))]
5858
#[error("The uid of the token has bit an uuid4 format: {}", .0)]
5959
Uuid(#[from] uuid::Error),
6060

61-
// Error thrown in case the version of the Uuid is not v4.
61+
/// Error thrown in case the version of the Uuid is not v4.
6262
#[error("The uid provided to the token is not of version uuidv4")]
6363
InvalidUuid4Version,
6464

src/search.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ pub struct SearchResults<T> {
7676
pub limit: Option<usize>,
7777
/// Estimated total number of matches.
7878
pub estimated_total_hits: Option<usize>,
79-
// Current page number
79+
/// Current page number
8080
pub page: Option<usize>,
81-
// Maximum number of hits in a page.
81+
/// Maximum number of hits in a page.
8282
pub hits_per_page: Option<usize>,
83-
// Exhaustive number of matches.
83+
/// Exhaustive number of matches.
8484
pub total_hits: Option<usize>,
85-
// Exhaustive number of pages.
85+
/// Exhaustive number of pages.
8686
pub total_pages: Option<usize>,
8787
/// Distribution of the given facets.
8888
pub facet_distribution: Option<HashMap<String, HashMap<String, usize>>>,

src/tasks.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,10 @@ impl AsRef<u32> for Task {
474474

475475
#[derive(Debug, Serialize, Clone)]
476476
pub 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>;
497497
pub 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

Comments
 (0)