pub async fn cursor_dispatch<F>(
args: &CursorArgs,
client: &ClickUpClient,
items_keys: &[&str],
compact_fields: &[&str],
build_path: F,
) -> Result<Value, String>Expand description
Run a cursor-based pagination loop. build_path(cursor) should return a
path including any ?cursor=... query when cursor is Some, or no cursor
query when None. items_keys is the list of candidate response keys to
extract the array from; first match wins. Typical: &["data", "<legacy>"]
where <legacy> is the pre-v3 key ("channels", "replies", etc.) for
back-compat with any older envelope shape.