pub struct PassportElementErrorFile {
pub type_: String,
pub file_hash: String,
pub message: String,
}Expand description
Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.
Fields§
§type_: StringThe section of the user’s Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”
file_hash: StringBase64-encoded file hash
message: StringError message
Implementations§
Trait Implementations§
Source§impl Clone for PassportElementErrorFile
impl Clone for PassportElementErrorFile
Source§fn clone(&self) -> PassportElementErrorFile
fn clone(&self) -> PassportElementErrorFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PassportElementErrorFile
impl Debug for PassportElementErrorFile
Source§impl<'de> Deserialize<'de> for PassportElementErrorFile
impl<'de> Deserialize<'de> for PassportElementErrorFile
Source§fn 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
Source§impl From<PassportElementErrorFile> for PassportElementError
impl From<PassportElementErrorFile> for PassportElementError
Source§fn from(o: PassportElementErrorFile) -> Self
fn from(o: PassportElementErrorFile) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PassportElementErrorFile
impl RefUnwindSafe for PassportElementErrorFile
impl Send for PassportElementErrorFile
impl Sync for PassportElementErrorFile
impl Unpin for PassportElementErrorFile
impl UnwindSafe for PassportElementErrorFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more