Skip to main content

window_args

Function window_args 

pub fn window_args(
    offset: Option<i64>,
    limit: Option<i64>,
    page: u32,
) -> Result<(i64, u32), String>
Expand description

The offset and limit a call gave, checked: (offset, limit) with the default offset 1 and the limit defaulting to, and clamped at, page.

ยงErrors

An offset of 0 (items count from 1) or a limit below 1, as text for the model.