Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Limits = Limits {
- limitsMax :: !Int
- limitsRemaining :: !Int
- limitsReset :: !SystemTime
- data RateLimit = RateLimit {}
- limitsFromHttpResponse :: Response a -> Maybe Limits
Documentation
Limits | |
|
Instances
Generic Limits Source # | |
Show Limits Source # | |
Binary Limits Source # | |
NFData Limits Source # | |
Defined in GitHub.Data.RateLimit | |
Eq Limits Source # | |
Ord Limits Source # | |
FromJSON Limits Source # | |
Defined in GitHub.Data.RateLimit | |
type Rep Limits Source # | |
Defined in GitHub.Data.RateLimit type Rep Limits = D1 ('MetaData "Limits" "GitHub.Data.RateLimit" "github-0.29-inplace" 'False) (C1 ('MetaCons "Limits" 'PrefixI 'True) (S1 ('MetaSel ('Just "limitsMax") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "limitsRemaining") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "limitsReset") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SystemTime)))) |
Instances
Generic RateLimit Source # | |
Show RateLimit Source # | |
Binary RateLimit Source # | |
NFData RateLimit Source # | |
Defined in GitHub.Data.RateLimit | |
Eq RateLimit Source # | |
Ord RateLimit Source # | |
Defined in GitHub.Data.RateLimit | |
FromJSON RateLimit Source # | |
Defined in GitHub.Data.RateLimit | |
type Rep RateLimit Source # | |
Defined in GitHub.Data.RateLimit type Rep RateLimit = D1 ('MetaData "RateLimit" "GitHub.Data.RateLimit" "github-0.29-inplace" 'False) (C1 ('MetaCons "RateLimit" 'PrefixI 'True) (S1 ('MetaSel ('Just "rateLimitCore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Limits) :*: (S1 ('MetaSel ('Just "rateLimitSearch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Limits) :*: S1 ('MetaSel ('Just "rateLimitGraphQL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Limits)))) |
limitsFromHttpResponse :: Response a -> Maybe Limits Source #
Since: 0.24