[−][src]Enum rtdlib::types::InputPassportElementErrorSource
Contains the description of an error in a Telegram Passport element; for bots only
Variants
DataField(InputPassportElementErrorSourceDataField)
A data field contains an error. The error is considered resolved when the field's value changes
The file contains an error. The error is considered resolved when the file changes
The list of attached files contains an error. The error is considered resolved when the file list changes
FrontSide(InputPassportElementErrorSourceFrontSide)
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)
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
The selfie contains an error. The error is considered resolved when the file with the selfie changes
TranslationFile(InputPassportElementErrorSourceTranslationFile)
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)
The translation of the document contains an error. The error is considered resolved when the list of files changes
Unspecified(InputPassportElementErrorSourceUnspecified)
The element contains an error in an unspecified place. The error will be considered resolved when new data is added
Implementations
impl InputPassportElementErrorSource
[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(&InputPassportElementErrorSourceDataField)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_file<F: FnOnce(&InputPassportElementErrorSourceFile)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_files<F: FnOnce(&InputPassportElementErrorSourceFiles)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_front_side<F: FnOnce(&InputPassportElementErrorSourceFrontSide)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_reverse_side<F: FnOnce(&InputPassportElementErrorSourceReverseSide)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_selfie<F: FnOnce(&InputPassportElementErrorSourceSelfie)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_translation_file<F: FnOnce(&InputPassportElementErrorSourceTranslationFile)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_translation_files<F: FnOnce(&InputPassportElementErrorSourceTranslationFiles)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_unspecified<F: FnOnce(&InputPassportElementErrorSourceUnspecified)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn as_data_field(&self) -> Option<&InputPassportElementErrorSourceDataField>
[src]
pub fn as_file(&self) -> Option<&InputPassportElementErrorSourceFile>
[src]
pub fn as_files(&self) -> Option<&InputPassportElementErrorSourceFiles>
[src]
pub fn as_front_side(&self) -> Option<&InputPassportElementErrorSourceFrontSide>
[src]
pub fn as_reverse_side(
&self
) -> Option<&InputPassportElementErrorSourceReverseSide>
[src]
&self
) -> Option<&InputPassportElementErrorSourceReverseSide>
pub fn as_selfie(&self) -> Option<&InputPassportElementErrorSourceSelfie>
[src]
pub fn as_translation_file(
&self
) -> Option<&InputPassportElementErrorSourceTranslationFile>
[src]
&self
) -> Option<&InputPassportElementErrorSourceTranslationFile>
pub fn as_translation_files(
&self
) -> Option<&InputPassportElementErrorSourceTranslationFiles>
[src]
&self
) -> Option<&InputPassportElementErrorSourceTranslationFiles>
pub fn as_unspecified(
&self
) -> Option<&InputPassportElementErrorSourceUnspecified>
[src]
&self
) -> Option<&InputPassportElementErrorSourceUnspecified>
pub fn data_field<T: AsRef<InputPassportElementErrorSourceDataField>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn file<T: AsRef<InputPassportElementErrorSourceFile>>(t: T) -> Self
[src]
pub fn files<T: AsRef<InputPassportElementErrorSourceFiles>>(t: T) -> Self
[src]
pub fn front_side<T: AsRef<InputPassportElementErrorSourceFrontSide>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn reverse_side<T: AsRef<InputPassportElementErrorSourceReverseSide>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn selfie<T: AsRef<InputPassportElementErrorSourceSelfie>>(t: T) -> Self
[src]
pub fn translation_file<T: AsRef<InputPassportElementErrorSourceTranslationFile>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn translation_files<T: AsRef<InputPassportElementErrorSourceTranslationFiles>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn unspecified<T: AsRef<InputPassportElementErrorSourceUnspecified>>(
t: T
) -> Self
[src]
t: T
) -> Self
Trait Implementations
impl AsRef<InputPassportElementErrorSource> for InputPassportElementErrorSource
[src]
fn as_ref(&self) -> &InputPassportElementErrorSource
[src]
impl Clone for InputPassportElementErrorSource
[src]
fn clone(&self) -> InputPassportElementErrorSource
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InputPassportElementErrorSource
[src]
impl Default for InputPassportElementErrorSource
[src]
impl<'de> Deserialize<'de> for InputPassportElementErrorSource
[src]
fn deserialize<D>(
deserializer: D
) -> Result<InputPassportElementErrorSource, D::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<InputPassportElementErrorSource, D::Error> where
D: Deserializer<'de>,
impl RObject for InputPassportElementErrorSource
[src]
impl Serialize for InputPassportElementErrorSource
[src]
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> 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>,