Skip to content

SearchResults[A: Any val]

[Source]

A page of search results from the GitHub search API. Contains the total match count, an incomplete-results flag, and the items for this page. Use prev_page() and next_page() to navigate between pages.

class val SearchResults[A: Any val]

Public fields

let total_count: I64 val

[Source]


let incomplete_results: Bool val

[Source]


let items: Array[A] val

[Source]


Public Functions

prev_page

[Source]

Fetches the previous page, or returns None if on the first page.

fun box prev_page()
: (Promise[(SearchResults[A] val | RequestError val)] tag | None val)

Returns


next_page

[Source]

Fetches the next page, or returns None if on the last page.

fun box next_page()
: (Promise[(SearchResults[A] val | RequestError val)] tag | None val)

Returns