| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
TD.Data.PassportElementErrorSource
Synopsis
- data PassportElementErrorSource
- = PassportElementErrorSourceUnspecified
- | PassportElementErrorSourceDataField {
- field_name :: Maybe Text
- | PassportElementErrorSourceFrontSide
- | PassportElementErrorSourceReverseSide
- | PassportElementErrorSourceSelfie
- | PassportElementErrorSourceTranslationFile {
- file_index :: Maybe Int
- | PassportElementErrorSourceTranslationFiles
- | PassportElementErrorSourceFile {
- file_index :: Maybe Int
- | PassportElementErrorSourceFiles
Documentation
data PassportElementErrorSource Source #
Contains the description of an error in a Telegram Passport element
Constructors
| PassportElementErrorSourceUnspecified | The element contains an error in an unspecified place. The error will be considered resolved when new data is added |
| PassportElementErrorSourceDataField | One of the data fields contains an error. The error will be considered resolved when the value of the field changes |
Fields
| |
| PassportElementErrorSourceFrontSide | The front side of the document contains an error. The error will be considered resolved when the file with the front side changes |
| PassportElementErrorSourceReverseSide | The reverse side of the document contains an error. The error will be considered resolved when the file with the reverse side changes |
| PassportElementErrorSourceSelfie | The selfie with the document contains an error. The error will be considered resolved when the file with the selfie changes |
| PassportElementErrorSourceTranslationFile | One of files with the translation of the document contains an error. The error will be considered resolved when the file changes |
Fields
| |
| PassportElementErrorSourceTranslationFiles | The translation of the document contains an error. The error will be considered resolved when the list of translation files changes |
| PassportElementErrorSourceFile | The file contains an error. The error will be considered resolved when the file changes |
Fields
| |
| PassportElementErrorSourceFiles | The list of attached files contains an error. The error will be considered resolved when the list of files changes |
Instances
| FromJSON PassportElementErrorSource Source # | |
Defined in TD.Data.PassportElementErrorSource Methods parseJSON :: Value -> Parser PassportElementErrorSource # parseJSONList :: Value -> Parser [PassportElementErrorSource] # | |
| Show PassportElementErrorSource Source # | |
Defined in TD.Data.PassportElementErrorSource Methods showsPrec :: Int -> PassportElementErrorSource -> ShowS # show :: PassportElementErrorSource -> String # showList :: [PassportElementErrorSource] -> ShowS # | |
| Eq PassportElementErrorSource Source # | |
Defined in TD.Data.PassportElementErrorSource Methods (==) :: PassportElementErrorSource -> PassportElementErrorSource -> Bool # (/=) :: PassportElementErrorSource -> PassportElementErrorSource -> Bool # | |
| ShortShow PassportElementErrorSource Source # | |
Defined in TD.Data.PassportElementErrorSource Methods | |