Skip to main content

page_limit

Function page_limit 

Source
pub fn page_limit(n: i64) -> Option<NonZeroU64>
Expand description

Convert an i64 page limit (as parsed from the CLI) into the Option<NonZeroU64> the generated client now requires: progenitor 0.14 / typify encodes the spec’s minimum: 1 in the type. Non-positive limits map to None, letting the server apply its default page size.