Enum rtdlib::types::InputPassportElementErrorSource[][src]

Expand description

Contains the description of an error in a Telegram Passport element; for bots only

Variants

DataField

A data field contains an error. The error is considered resolved when the field’s value changes

Tuple Fields of DataField

0: InputPassportElementErrorSourceDataField
File

The file contains an error. The error is considered resolved when the file changes

Tuple Fields of File

0: InputPassportElementErrorSourceFile
Files

The list of attached files contains an error. The error is considered resolved when the file list changes

Tuple Fields of Files

0: InputPassportElementErrorSourceFiles
FrontSide

The front side of the document contains an error. The error is considered resolved when the file with the front side of the document changes

Tuple Fields of FrontSide

0: InputPassportElementErrorSourceFrontSide
ReverseSide

The reverse side of the document contains an error. The error is considered resolved when the file with the reverse side of the document changes

Tuple Fields of ReverseSide

0: InputPassportElementErrorSourceReverseSide
Selfie

The selfie contains an error. The error is considered resolved when the file with the selfie changes

Tuple Fields of Selfie

0: InputPassportElementErrorSourceSelfie
TranslationFile

One of the files containing the translation of the document contains an error. The error is considered resolved when the file with the translation changes

Tuple Fields of TranslationFile

0: InputPassportElementErrorSourceTranslationFile
TranslationFiles

The translation of the document contains an error. The error is considered resolved when the list of files changes

Tuple Fields of TranslationFiles

0: InputPassportElementErrorSourceTranslationFiles
Unspecified

The element contains an error in an unspecified place. The error will be considered resolved when new data is added

Tuple Fields of Unspecified

0: InputPassportElementErrorSourceUnspecified

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.