Tinkex.Types.Cursor (Tinkex v0.3.4)

View Source

Pagination cursor for paged responses.

Summary

Functions

Parse a Cursor from a map.

Types

t()

@type t() :: %Tinkex.Types.Cursor{
  limit: non_neg_integer(),
  offset: non_neg_integer(),
  total_count: non_neg_integer()
}

Functions

from_map(map)

@spec from_map(map() | nil) :: t() | nil

Parse a Cursor from a map.