License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Limits = Limits {
- limitsMax :: !Int
- limitsRemaining :: !Int
- limitsReset :: !SystemTime
- data RateLimit = RateLimit {}
- limitsFromHttpResponse :: Response a -> Maybe Limits
Documentation
Limits | |
|
Instances
Eq Limits Source # | |
Ord Limits Source # | |
Show Limits Source # | |
Generic Limits Source # | |
FromJSON Limits Source # | |
Binary Limits Source # | |
NFData 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.28.0.1-Ane44df1Z4EB2fvYeVzY0Q" '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
Eq RateLimit Source # | |
Ord RateLimit Source # | |
Defined in GitHub.Data.RateLimit | |
Show RateLimit Source # | |
Generic RateLimit Source # | |
FromJSON RateLimit Source # | |
Binary RateLimit Source # | |
NFData 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.28.0.1-Ane44df1Z4EB2fvYeVzY0Q" '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)))) |