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)
A data field contains an error. The error is considered resolved when the field’s value changes
File(InputPassportElementErrorSourceFile)
The file contains an error. The error is considered resolved when the file changes
Files(InputPassportElementErrorSourceFiles)
The list of attached files contains an error. The error is considered resolved when the file list changes
FrontSide(InputPassportElementErrorSourceFrontSide)
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)
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)
The selfie contains an error. The error is considered resolved when the file with the selfie changes
TranslationFile(InputPassportElementErrorSourceTranslationFile)
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)
The translation of the document contains an error. The error is considered resolved when the list of files changes
Unspecified(InputPassportElementErrorSourceUnspecified)
The element contains an error in an unspecified place. The error will be considered resolved when new data is added
Implementations
Trait Implementations
sourceimpl AsRef<InputPassportElementErrorSource> for InputPassportElementErrorSource
impl AsRef<InputPassportElementErrorSource> for InputPassportElementErrorSource
sourcefn as_ref(&self) -> &InputPassportElementErrorSource
fn as_ref(&self) -> &InputPassportElementErrorSource
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for InputPassportElementErrorSource
impl Clone for InputPassportElementErrorSource
sourcefn clone(&self) -> InputPassportElementErrorSource
fn clone(&self) -> InputPassportElementErrorSource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de> Deserialize<'de> for InputPassportElementErrorSource
impl<'de> Deserialize<'de> for InputPassportElementErrorSource
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for InputPassportElementErrorSource
impl Send for InputPassportElementErrorSource
impl Sync for InputPassportElementErrorSource
impl Unpin for InputPassportElementErrorSource
impl UnwindSafe for InputPassportElementErrorSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more