Enum rust_tdlib::types::InputPassportElementErrorSource [−][src]
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)
Expand description
A data field contains an error. The error is considered resolved when the field’s value changes
Expand description
The file contains an error. The error is considered resolved when the file changes
Expand description
The list of attached files contains an error. The error is considered resolved when the file list changes
FrontSide(InputPassportElementErrorSourceFrontSide)
Expand description
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)
Expand description
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
Expand description
The selfie contains an error. The error is considered resolved when the file with the selfie changes
TranslationFile(InputPassportElementErrorSourceTranslationFile)
Expand description
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)
Expand description
The translation of the document contains an error. The error is considered resolved when the list of files changes
Unspecified(InputPassportElementErrorSourceUnspecified)
Expand description
The element contains an error in an unspecified place. The error will be considered resolved when new data is added
Implementations
Trait Implementations
impl AsRef<InputPassportElementErrorSource> for InputPassportElementErrorSource
[src]
impl AsRef<InputPassportElementErrorSource> for InputPassportElementErrorSource
[src]fn as_ref(&self) -> &InputPassportElementErrorSource
[src]
fn as_ref(&self) -> &InputPassportElementErrorSource
[src]Performs the conversion.
impl Clone for InputPassportElementErrorSource
[src]
impl Clone for InputPassportElementErrorSource
[src]fn clone(&self) -> InputPassportElementErrorSource
[src]
fn clone(&self) -> InputPassportElementErrorSource
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<'de> Deserialize<'de> for InputPassportElementErrorSource
[src]
impl<'de> Deserialize<'de> for InputPassportElementErrorSource
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,