Skip to content

Commit

Permalink
Add page to crates query builder
Browse files Browse the repository at this point in the history
  • Loading branch information
terror authored and theduke committed Oct 28, 2023
1 parent 616f934 commit 8836fa7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ impl CratesQueryBuilder {
self
}

/// Set the page.
#[must_use]
pub fn page(mut self, page: u64) -> Self {
self.query.page = page;
self
}

/// Set the page size.
#[must_use]
pub fn page_size(mut self, size: u64) -> Self {
Expand Down

0 comments on commit 8836fa7

Please sign in to comment.