hercules-ci-api-0.7.2.0: Hercules CI API definition with Servant
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hercules.API.Paging

Documentation

data PagedResponse a Source #

Constructors

PagedResponse 

Fields

  • items :: [a]

    The items you requested, up to some limit.

  • more :: Bool

    Whether more items would be returned if it wasn't for the limit.

Instances

Instances details
FromJSON a => FromJSON (PagedResponse a) Source # 
Instance details

Defined in Hercules.API.Paging

ToJSON a => ToJSON (PagedResponse a) Source # 
Instance details

Defined in Hercules.API.Paging

Generic (PagedResponse a) Source # 
Instance details

Defined in Hercules.API.Paging

Associated Types

type Rep (PagedResponse a) :: Type -> Type #

Show a => Show (PagedResponse a) Source # 
Instance details

Defined in Hercules.API.Paging

NFData a => NFData (PagedResponse a) Source # 
Instance details

Defined in Hercules.API.Paging

Methods

rnf :: PagedResponse a -> () #

Eq a => Eq (PagedResponse a) Source # 
Instance details

Defined in Hercules.API.Paging

ToSchema a => ToSchema (PagedResponse a) Source # 
Instance details

Defined in Hercules.API.Paging

type Rep (PagedResponse a) Source # 
Instance details

Defined in Hercules.API.Paging

type Rep (PagedResponse a) = D1 ('MetaData "PagedResponse" "Hercules.API.Paging" "hercules-ci-api-0.7.2.0-inplace" 'False) (C1 ('MetaCons "PagedResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [a]) :*: S1 ('MetaSel ('Just "more") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))