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)
Tuple Fields
One of the data fields contains an error. The error will be considered resolved when the value of the field changes
File(PassportElementErrorSourceFile)
Tuple Fields
The file contains an error. The error will be considered resolved when the file changes
Files(PassportElementErrorSourceFiles)
Tuple Fields
The list of attached files contains an error. The error will be considered resolved when the list of files changes
FrontSide(PassportElementErrorSourceFrontSide)
Tuple Fields
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)
Tuple Fields
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)
Tuple Fields
The selfie with the document contains an error. The error will be considered resolved when the file with the selfie changes
TranslationFile(PassportElementErrorSourceTranslationFile)
Tuple Fields
One of files with the translation of the document contains an error. The error will be considered resolved when the file changes
TranslationFiles(PassportElementErrorSourceTranslationFiles)
Tuple Fields
The translation of the document contains an error. The error will be considered resolved when the list of translation files changes
Unspecified(PassportElementErrorSourceUnspecified)
Tuple Fields
The element contains an error in an unspecified place. The error will be considered resolved when new data is added
Implementations
pub fn on_data_field<F: FnOnce(&PassportElementErrorSourceDataField)>(
&self,
fnc: F
) -> &Self
pub fn on_front_side<F: FnOnce(&PassportElementErrorSourceFrontSide)>(
&self,
fnc: F
) -> &Self
pub fn on_reverse_side<F: FnOnce(&PassportElementErrorSourceReverseSide)>(
&self,
fnc: F
) -> &Self
pub fn on_translation_file<F: FnOnce(&PassportElementErrorSourceTranslationFile)>(
&self,
fnc: F
) -> &Self
pub fn on_translation_files<F: FnOnce(&PassportElementErrorSourceTranslationFiles)>(
&self,
fnc: F
) -> &Self
pub fn on_unspecified<F: FnOnce(&PassportElementErrorSourceUnspecified)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(
deserializer: D
) -> Result<PassportElementErrorSource, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<PassportElementErrorSource, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for PassportElementErrorSource
impl Send for PassportElementErrorSource
impl Sync for PassportElementErrorSource
impl Unpin for PassportElementErrorSource
impl UnwindSafe for PassportElementErrorSource
Blanket Implementations
Mutably borrows from an owned value. Read more