pub enum PassportElementError {
Data {
_type: DataErrorType,
field_name: String,
data_hash: String,
message: String,
},
FrontSide {
_type: FrontSideErrorType,
file_hash: String,
message: String,
},
ReverseSide {
_type: ReverseSideErrorType,
file_hash: String,
message: String,
},
Selfie {
_type: SelfieErrorType,
file_hash: String,
message: String,
},
File {
_type: FileErrorType,
file_hash: String,
message: String,
},
Files {
_type: FilesErrorType,
file_hashes: Vec<String>,
message: String,
},
TranslationFile {
_type: TranslationFileErrorType,
file_hash: String,
message: String,
},
TranslationFiles {
_type: TranslationFilesErrorType,
file_hashes: Vec<String>,
message: String,
},
Unspecified {
_type: String,
element_hash: String,
message: String,
},
}Expand description
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user
Variants§
Data
Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field’s value changes.
Fields
_type: DataErrorTypeThe section of the user’s Telegram Passport which has the error
FrontSide
Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.
Fields
_type: FrontSideErrorTypeThe section of the user’s Telegram Passport which has the issue
ReverseSide
Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.
Fields
_type: ReverseSideErrorTypeThe section of the user’s Telegram Passport which has the issue
Selfie
Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.
Fields
_type: SelfieErrorTypeThe section of the user’s Telegram Passport which has the issue
File
Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.
Fields
_type: FileErrorTypeThe section of the user’s Telegram Passport which has the issue
Files
Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.
Fields
_type: FilesErrorTypeThe section of the user’s Telegram Passport which has the issue
TranslationFile
Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.
Fields
_type: TranslationFileErrorTypeType of element of the user’s Telegram Passport which has the issue
TranslationFiles
Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.
Fields
_type: TranslationFilesErrorTypeType of element of the user’s Telegram Passport which has the issue
Unspecified
Represents an issue in an unspecified place. The error is considered resolved when new data is added.
Trait Implementations§
Source§impl Clone for PassportElementError
impl Clone for PassportElementError
Source§fn clone(&self) -> PassportElementError
fn clone(&self) -> PassportElementError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more