mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Make it work in the CreateApiKey struct
This commit is contained in:
parent
29961b8c6b
commit
184b8afd9e
3 changed files with 9 additions and 5 deletions
|
@ -61,6 +61,7 @@ pub struct ListApiKeys {
|
|||
#[deserr(error = DeserrError<InvalidApiKeyLimit>, default = PAGINATION_DEFAULT_LIMIT(), from(&String) = parse_usize_take_error_message -> TakeErrorMessage<std::num::ParseIntError>)]
|
||||
pub limit: usize,
|
||||
}
|
||||
|
||||
impl ListApiKeys {
|
||||
fn as_pagination(self) -> Pagination {
|
||||
Pagination { offset: self.offset, limit: self.limit }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue