| License | BSD-3-Clause |
|---|---|
| Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
| Safe Haskell | None |
| Language | Haskell2010 |
GitHub.Data.RateLimit
Description
Synopsis
- data Limits = Limits {
- limitsMax :: !Int
- limitsRemaining :: !Int
- limitsReset :: !SystemTime
- data RateLimit = RateLimit {}
- limitsFromHttpResponse :: Response a -> Maybe Limits
Documentation
Constructors
| Limits | |
Fields
| |
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.26-NGv9yMkIfb3ssAFkCPufN" 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)))) | |
Constructors
| RateLimit | |
Fields | |
Instances
| Eq RateLimit Source # | |
| Ord RateLimit Source # | |
| 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.26-NGv9yMkIfb3ssAFkCPufN" 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)))) | |