pub enum PassportElementErrorSource {
DataField(PassportElementErrorSourceDataField),
File(PassportElementErrorSourceFile),
Files(PassportElementErrorSourceFiles),
FrontSide(PassportElementErrorSourceFrontSide),
ReverseSide(PassportElementErrorSourceReverseSide),
Selfie(PassportElementErrorSourceSelfie),
TranslationFile(PassportElementErrorSourceTranslationFile),
TranslationFiles(PassportElementErrorSourceTranslationFiles),
Unspecified(PassportElementErrorSourceUnspecified),
// some variants omitted
}
Expand description
Contains the description of an error in a Telegram Passport element
Variants§
DataField(PassportElementErrorSourceDataField)
One of the data fields contains an error. The error will be considered resolved when the value of the field changes
File(PassportElementErrorSourceFile)
The file contains an error. The error will be considered resolved when the file changes
Files(PassportElementErrorSourceFiles)
The list of attached files contains an error. The error will be considered resolved when the list of files changes
FrontSide(PassportElementErrorSourceFrontSide)
The front side of the document contains an error. The error will be considered resolved when the file with the front side changes
ReverseSide(PassportElementErrorSourceReverseSide)
The reverse side of the document contains an error. The error will be considered resolved when the file with the reverse side changes
Selfie(PassportElementErrorSourceSelfie)
The selfie with the document contains an error. The error will be considered resolved when the file with the selfie changes
TranslationFile(PassportElementErrorSourceTranslationFile)
One of files with the translation of the document contains an error. The error will be considered resolved when the file changes
TranslationFiles(PassportElementErrorSourceTranslationFiles)
The translation of the document contains an error. The error will be considered resolved when the list of translation files changes
Unspecified(PassportElementErrorSourceUnspecified)
The element contains an error in an unspecified place. The error will be considered resolved when new data is added
Implementations§
Trait Implementations§
source§impl AsRef<PassportElementErrorSource> for PassportElementErrorSource
impl AsRef<PassportElementErrorSource> for PassportElementErrorSource
source§fn as_ref(&self) -> &PassportElementErrorSource
fn as_ref(&self) -> &PassportElementErrorSource
source§impl Clone for PassportElementErrorSource
impl Clone for PassportElementErrorSource
source§fn clone(&self) -> PassportElementErrorSource
fn clone(&self) -> PassportElementErrorSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more