[][src]Enum tg_bot_models::PassportElementError

pub enum PassportElementError {
    PassportElementErrorDataField(PassportElementErrorDataField),
    PassportElementErrorFrontSide(PassportElementErrorFrontSide),
    PassportElementErrorReverseSide(PassportElementErrorReverseSide),
    PassportElementErrorSelfie(PassportElementErrorSelfie),
    PassportElementErrorFile(PassportElementErrorFile),
    PassportElementErrorFiles(PassportElementErrorFiles),
    PassportElementErrorTranslationFile(PassportElementErrorTranslationFile),
    PassportElementErrorTranslationFiles(PassportElementErrorTranslationFiles),
    PassportElementErrorUnspecified(PassportElementErrorUnspecified),
}

This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:

Variants

PassportElementErrorDataField(PassportElementErrorDataField)PassportElementErrorFrontSide(PassportElementErrorFrontSide)PassportElementErrorReverseSide(PassportElementErrorReverseSide)PassportElementErrorSelfie(PassportElementErrorSelfie)PassportElementErrorFile(PassportElementErrorFile)PassportElementErrorFiles(PassportElementErrorFiles)PassportElementErrorTranslationFile(PassportElementErrorTranslationFile)PassportElementErrorTranslationFiles(PassportElementErrorTranslationFiles)PassportElementErrorUnspecified(PassportElementErrorUnspecified)

Trait Implementations

impl PartialEq<PassportElementError> for PassportElementError[src]

impl Clone for PassportElementError[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<PassportElementError> for PassportElementError[src]

impl Debug for PassportElementError[src]

impl Serialize for PassportElementError[src]

impl<'de> Deserialize<'de> for PassportElementError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]