[][src]Enum tbot::types::passport::element::error::Source

pub enum Source<'a> {
    Data(Data<'a>),
    FrontSide(FrontSide<'a>),
    ReverseSide(ReverseSide<'a>),
    Selfie(Selfie<'a>),
    File(File<'a>),
    Files(Files<'a>),
    TranslationFile(TranslationFile<'a>),
    TranslationFiles(TranslationFiles<'a>),
    Unspecified(Unspecified<'a>),
}

Reperesents possible sources of an error.

Variants

Data(Data<'a>)

An error with data.

FrontSide(FrontSide<'a>)

An error with a front side.

ReverseSide(ReverseSide<'a>)

An error with a reverse side.

Selfie(Selfie<'a>)

An error with a selfie.

File(File<'a>)

An error with a file.

Files(Files<'a>)

An error with several files.

TranslationFile(TranslationFile<'a>)

An error with a translation file.

TranslationFiles(TranslationFiles<'a>)

An error with translation files.

Unspecified(Unspecified<'a>)

An unspecified error.

Methods

impl<'a> Source<'a>[src]

pub fn is_data(self) -> bool[src]

Checks if self is Data.

pub fn is_front_side(self) -> bool[src]

Checks if self is FrontSide.

pub fn is_reverse_side(self) -> bool[src]

Checks if self is ReverseSide.

pub fn is_selfie(self) -> bool[src]

Checks if self is Selfie.

pub fn is_file(self) -> bool[src]

Checks if self is File.

pub fn is_files(self) -> bool[src]

Checks if self is Files.

pub fn is_translation_file(self) -> bool[src]

Checks if self is TranslationFile.

pub fn is_translation_files(self) -> bool[src]

Checks if self is TranslationFiles.

pub fn is_unspecified(self) -> bool[src]

Checks if self is Unspecified.

Trait Implementations

impl<'a> PartialEq<Source<'a>> for Source<'a>[src]

impl<'a> Copy for Source<'a>[src]

impl<'a> Eq for Source<'a>[src]

impl<'a> From<Data<'a>> for Source<'a>[src]

impl<'a> From<FrontSide<'a>> for Source<'a>[src]

impl<'a> From<ReverseSide<'a>> for Source<'a>[src]

impl<'a> From<Selfie<'a>> for Source<'a>[src]

impl<'a> From<File<'a>> for Source<'a>[src]

impl<'a> From<Files<'a>> for Source<'a>[src]

impl<'a> From<TranslationFile<'a>> for Source<'a>[src]

impl<'a> From<TranslationFiles<'a>> for Source<'a>[src]

impl<'a> From<Unspecified<'a>> for Source<'a>[src]

impl<'a> Clone for Source<'a>[src]

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

Performs copy-assignment from source. Read more

impl<'a> Hash for Source<'a>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> Debug for Source<'a>[src]

impl<'a> Serialize for Source<'a>[src]

Auto Trait Implementations

impl<'a> Send for Source<'a>

impl<'a> Unpin for Source<'a>

impl<'a> Sync for Source<'a>

impl<'a> UnwindSafe for Source<'a>

impl<'a> RefUnwindSafe for Source<'a>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T