Skip to main content

paginate

Function paginate 

Source
fn paginate(
    rooms: Vec<OwnedRoomId>,
    dir: Direction,
    from: usize,
    limit: usize,
) -> (Vec<DestinationRoom>, UInt, Option<String>)
Expand description

The next_token is the stringified next offset, emitted only while rows remain past the returned page (Synapse’s str(from + len) convention).