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
sourceimpl AsRef<PassportElementErrorSource> for PassportElementErrorSource
impl AsRef<PassportElementErrorSource> for PassportElementErrorSource
sourcefn as_ref(&self) -> &PassportElementErrorSource
fn as_ref(&self) -> &PassportElementErrorSource
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for PassportElementErrorSource
impl Clone for PassportElementErrorSource
sourcefn clone(&self) -> PassportElementErrorSource
fn clone(&self) -> PassportElementErrorSource
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 Debug for PassportElementErrorSource
impl Debug for PassportElementErrorSource
sourceimpl Default for PassportElementErrorSource
impl Default for PassportElementErrorSource
sourceimpl<'de> Deserialize<'de> for PassportElementErrorSource
impl<'de> Deserialize<'de> for PassportElementErrorSource
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 PassportElementErrorSource
impl Send for PassportElementErrorSource
impl Sync for PassportElementErrorSource
impl Unpin for PassportElementErrorSource
impl UnwindSafe for PassportElementErrorSource
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