From 280297b28e6ecb58e1f5c9133ef0155a66aa1ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABlle=20Huisman?= Date: Fri, 9 May 2025 13:21:07 +0200 Subject: [PATCH] feat: add limit to pagination params --- src/core/types/pagination_params.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/types/pagination_params.rs b/src/core/types/pagination_params.rs index 30b83d9..b8c3424 100644 --- a/src/core/types/pagination_params.rs +++ b/src/core/types/pagination_params.rs @@ -11,6 +11,9 @@ pub struct PaginationParams<'a> { /// The cursor before which records should be retrieved. pub before: Option<&'a str>, + + /// Upper limit on the number of objects to return, between 1 and 100. The default value is 10. + pub limit: Option, } impl Default for PaginationParams<'_> { @@ -19,6 +22,7 @@ impl Default for PaginationParams<'_> { order: &PaginationOrder::DEFAULT, before: None, after: None, + limit: None, } } }