pub enum InputPassportElementErrorSource {
DataField(InputPassportElementErrorSourceDataField),
File(InputPassportElementErrorSourceFile),
Files(InputPassportElementErrorSourceFiles),
FrontSide(InputPassportElementErrorSourceFrontSide),
ReverseSide(InputPassportElementErrorSourceReverseSide),
Selfie(InputPassportElementErrorSourceSelfie),
TranslationFile(InputPassportElementErrorSourceTranslationFile),
TranslationFiles(InputPassportElementErrorSourceTranslationFiles),
Unspecified(InputPassportElementErrorSourceUnspecified),
// some variants omitted
}
Expand description
Contains the description of an error in a Telegram Passport element; for bots only
Variants
DataField(InputPassportElementErrorSourceDataField)
Tuple Fields
A data field contains an error. The error is considered resolved when the field’s value changes
File(InputPassportElementErrorSourceFile)
Tuple Fields
The file contains an error. The error is considered resolved when the file changes
Files(InputPassportElementErrorSourceFiles)
Tuple Fields
The list of attached files contains an error. The error is considered resolved when the file list changes
FrontSide(InputPassportElementErrorSourceFrontSide)
Tuple Fields
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
ReverseSide(InputPassportElementErrorSourceReverseSide)
Tuple Fields
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
Selfie(InputPassportElementErrorSourceSelfie)
Tuple Fields
The selfie contains an error. The error is considered resolved when the file with the selfie changes
TranslationFile(InputPassportElementErrorSourceTranslationFile)
Tuple Fields
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
TranslationFiles(InputPassportElementErrorSourceTranslationFiles)
Tuple Fields
The translation of the document contains an error. The error is considered resolved when the list of files changes
Unspecified(InputPassportElementErrorSourceUnspecified)
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(&InputPassportElementErrorSourceDataField)>(
&self,
fnc: F
) -> &Self
pub fn on_front_side<F: FnOnce(&InputPassportElementErrorSourceFrontSide)>(
&self,
fnc: F
) -> &Self
pub fn on_reverse_side<F: FnOnce(&InputPassportElementErrorSourceReverseSide)>(
&self,
fnc: F
) -> &Self
pub fn on_translation_file<F: FnOnce(&InputPassportElementErrorSourceTranslationFile)>(
&self,
fnc: F
) -> &Self
pub fn on_translation_files<F: FnOnce(&InputPassportElementErrorSourceTranslationFiles)>(
&self,
fnc: F
) -> &Self
pub fn on_unspecified<F: FnOnce(&InputPassportElementErrorSourceUnspecified)>(
&self,
fnc: F
) -> &Self
pub fn as_translation_files(
&self
) -> Option<&InputPassportElementErrorSourceTranslationFiles>
pub fn translation_file<T: AsRef<InputPassportElementErrorSourceTranslationFile>>(
t: T
) -> Self
pub fn translation_files<T: AsRef<InputPassportElementErrorSourceTranslationFiles>>(
t: T
) -> Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(
deserializer: D
) -> Result<InputPassportElementErrorSource, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<InputPassportElementErrorSource, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for InputPassportElementErrorSource
impl Sync for InputPassportElementErrorSource
impl Unpin for InputPassportElementErrorSource
Blanket Implementations
Mutably borrows from an owned value. Read more