Struct telexide::api::types::PassportElementErrorFrontSide
source · pub struct PassportElementErrorFrontSide {
pub section_type: TelegramPassportElement,
pub file_hash: String,
pub message: String,
}
Expand description
Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.
Fields§
§section_type: TelegramPassportElement
The section of the user’s Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”
file_hash: String
Base64-encoded hash of the file with the front side of the document
message: String
Error message
Implementations§
source§impl PassportElementErrorFrontSide
impl PassportElementErrorFrontSide
pub fn new( section_type: TelegramPassportElement, file_hash: impl ToString, message: impl ToString ) -> Self
Trait Implementations§
source§impl Clone for PassportElementErrorFrontSide
impl Clone for PassportElementErrorFrontSide
source§fn clone(&self) -> PassportElementErrorFrontSide
fn clone(&self) -> PassportElementErrorFrontSide
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for PassportElementErrorFrontSide
impl<'de> Deserialize<'de> for PassportElementErrorFrontSide
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for PassportElementErrorFrontSide
impl PartialEq for PassportElementErrorFrontSide
source§fn eq(&self, other: &PassportElementErrorFrontSide) -> bool
fn eq(&self, other: &PassportElementErrorFrontSide) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PassportElementErrorFrontSide
impl StructuralEq for PassportElementErrorFrontSide
impl StructuralPartialEq for PassportElementErrorFrontSide
Auto Trait Implementations§
impl RefUnwindSafe for PassportElementErrorFrontSide
impl Send for PassportElementErrorFrontSide
impl Sync for PassportElementErrorFrontSide
impl Unpin for PassportElementErrorFrontSide
impl UnwindSafe for PassportElementErrorFrontSide
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.