[−][src]Enum tbot::types::passport::element::error::Source
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]
fn from(source: ReverseSide<'a>) -> Self
[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]
fn from(source: TranslationFile<'a>) -> Self
[src]
impl<'a> From<TranslationFiles<'a>> for Source<'a>
[src]
fn from(source: TranslationFiles<'a>) -> Self
[src]
impl<'a> From<Unspecified<'a>> for Source<'a>
[src]
fn from(source: Unspecified<'a>) -> Self
[src]
impl<'a> Clone for Source<'a>
[src]
fn clone(&self) -> 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<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,