Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

Commit 78a32a3

Browse files
feat: add limit to pagination params (#28)
1 parent 6f4afc0 commit 78a32a3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/core/types/pagination_params.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ pub struct PaginationParams<'a> {
1111

1212
/// The cursor before which records should be retrieved.
1313
pub before: Option<&'a str>,
14+
15+
/// Upper limit on the number of objects to return, between 1 and 100. The default value is 10.
16+
pub limit: Option<u8>,
1417
}
1518

1619
impl Default for PaginationParams<'_> {
@@ -19,6 +22,7 @@ impl Default for PaginationParams<'_> {
1922
order: &PaginationOrder::DEFAULT,
2023
before: None,
2124
after: None,
25+
limit: None,
2226
}
2327
}
2428
}

0 commit comments

Comments
 (0)