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) #
parseJSONList :: Value -> Parser [PagedResponse a] #
toJSON :: PagedResponse a -> Value #
toEncoding :: PagedResponse a -> Encoding #
toJSONList :: [PagedResponse a] -> Value #
toEncodingList :: [PagedResponse a] -> Encoding #
Associated Types
type Rep (PagedResponse a) :: Type -> Type #
from :: PagedResponse a -> Rep (PagedResponse a) x #
to :: Rep (PagedResponse a) x -> PagedResponse a #
showsPrec :: Int -> PagedResponse a -> ShowS #
show :: PagedResponse a -> String #
showList :: [PagedResponse a] -> ShowS #
rnf :: PagedResponse a -> () #
(==) :: PagedResponse a -> PagedResponse a -> Bool #
(/=) :: PagedResponse a -> PagedResponse a -> Bool #
declareNamedSchema :: Proxy (PagedResponse a) -> Declare (Definitions Schema) NamedSchema #