Hercules.API.Paging
data PagedResponse a Source #
Constructors
Fields
The items you requested, up to some limit.
Whether more items would be returned if it wasn't for the limit.
Defined in Hercules.API.Paging
Methods
parseJSON :: Value -> Parser (PagedResponse a) Source #
parseJSONList :: Value -> Parser [PagedResponse a] Source #
toJSON :: PagedResponse a -> Value Source #
toEncoding :: PagedResponse a -> Encoding Source #
toJSONList :: [PagedResponse a] -> Value Source #
toEncodingList :: [PagedResponse a] -> Encoding Source #
Associated Types
type Rep (PagedResponse a) :: Type -> Type Source #
from :: PagedResponse a -> Rep (PagedResponse a) x Source #
to :: Rep (PagedResponse a) x -> PagedResponse a Source #
showsPrec :: Int -> PagedResponse a -> ShowS Source #
show :: PagedResponse a -> String Source #
showList :: [PagedResponse a] -> ShowS Source #
rnf :: PagedResponse a -> () Source #
(==) :: PagedResponse a -> PagedResponse a -> Bool Source #
(/=) :: PagedResponse a -> PagedResponse a -> Bool Source #
declareNamedSchema :: Proxy (PagedResponse a) -> Declare (Definitions Schema) NamedSchema Source #