[−][src]Enum rtdlib::types::PassportElementErrorSource
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
The file contains an error. The error will be considered resolved when the file changes
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
impl PassportElementErrorSource
[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
[src]
pub fn is_data_field(&self) -> bool
[src]
pub fn is_file(&self) -> bool
[src]
pub fn is_files(&self) -> bool
[src]
pub fn is_front_side(&self) -> bool
[src]
pub fn is_reverse_side(&self) -> bool
[src]
pub fn is_selfie(&self) -> bool
[src]
pub fn is_translation_file(&self) -> bool
[src]
pub fn is_translation_files(&self) -> bool
[src]
pub fn is_unspecified(&self) -> bool
[src]
pub fn on_data_field<F: FnOnce(&PassportElementErrorSourceDataField)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_file<F: FnOnce(&PassportElementErrorSourceFile)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_files<F: FnOnce(&PassportElementErrorSourceFiles)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_front_side<F: FnOnce(&PassportElementErrorSourceFrontSide)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_reverse_side<F: FnOnce(&PassportElementErrorSourceReverseSide)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_selfie<F: FnOnce(&PassportElementErrorSourceSelfie)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_translation_file<F: FnOnce(&PassportElementErrorSourceTranslationFile)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_translation_files<F: FnOnce(&PassportElementErrorSourceTranslationFiles)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_unspecified<F: FnOnce(&PassportElementErrorSourceUnspecified)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn as_data_field(&self) -> Option<&PassportElementErrorSourceDataField>
[src]
pub fn as_file(&self) -> Option<&PassportElementErrorSourceFile>
[src]
pub fn as_files(&self) -> Option<&PassportElementErrorSourceFiles>
[src]
pub fn as_front_side(&self) -> Option<&PassportElementErrorSourceFrontSide>
[src]
pub fn as_reverse_side(&self) -> Option<&PassportElementErrorSourceReverseSide>
[src]
pub fn as_selfie(&self) -> Option<&PassportElementErrorSourceSelfie>
[src]
pub fn as_translation_file(
&self
) -> Option<&PassportElementErrorSourceTranslationFile>
[src]
&self
) -> Option<&PassportElementErrorSourceTranslationFile>
pub fn as_translation_files(
&self
) -> Option<&PassportElementErrorSourceTranslationFiles>
[src]
&self
) -> Option<&PassportElementErrorSourceTranslationFiles>
pub fn as_unspecified(&self) -> Option<&PassportElementErrorSourceUnspecified>
[src]
pub fn data_field<T: AsRef<PassportElementErrorSourceDataField>>(t: T) -> Self
[src]
pub fn file<T: AsRef<PassportElementErrorSourceFile>>(t: T) -> Self
[src]
pub fn files<T: AsRef<PassportElementErrorSourceFiles>>(t: T) -> Self
[src]
pub fn front_side<T: AsRef<PassportElementErrorSourceFrontSide>>(t: T) -> Self
[src]
pub fn reverse_side<T: AsRef<PassportElementErrorSourceReverseSide>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn selfie<T: AsRef<PassportElementErrorSourceSelfie>>(t: T) -> Self
[src]
pub fn translation_file<T: AsRef<PassportElementErrorSourceTranslationFile>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn translation_files<T: AsRef<PassportElementErrorSourceTranslationFiles>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn unspecified<T: AsRef<PassportElementErrorSourceUnspecified>>(
t: T
) -> Self
[src]
t: T
) -> Self
Trait Implementations
impl AsRef<PassportElementErrorSource> for PassportElementErrorSource
[src]
fn as_ref(&self) -> &PassportElementErrorSource
[src]
impl Clone for PassportElementErrorSource
[src]
fn clone(&self) -> PassportElementErrorSource
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PassportElementErrorSource
[src]
impl Default for PassportElementErrorSource
[src]
impl<'de> Deserialize<'de> for PassportElementErrorSource
[src]
fn deserialize<D>(
deserializer: D
) -> Result<PassportElementErrorSource, D::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<PassportElementErrorSource, D::Error> where
D: Deserializer<'de>,
impl RObject for PassportElementErrorSource
[src]
impl Serialize for PassportElementErrorSource
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,