Struct botapi::gen_types::PassportElementErrorFrontSide
source · pub struct PassportElementErrorFrontSide {
pub source: String,
pub tg_type: String,
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§
§source: String
Error source, must be front_side
tg_type: String
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 noskip(self) -> NoSkipPassportElementErrorFrontSide
source§impl PassportElementErrorFrontSide
impl PassportElementErrorFrontSide
pub fn new(source: String, file_hash: String, message: String) -> Self
sourcepub fn get_source<'a>(&'a self) -> &'a str
pub fn get_source<'a>(&'a self) -> &'a str
Error source, must be front_side
sourcepub fn set_source<'a>(&'a mut self, source: String) -> &'a mut Self
pub fn set_source<'a>(&'a mut self, source: String) -> &'a mut Self
Error source, must be front_side
sourcepub fn get_tg_type<'a>(&'a self) -> &'a str
pub fn get_tg_type<'a>(&'a self) -> &'a str
The section of the user’s Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”
sourcepub fn set_tg_type<'a>(&'a mut self, tg_type: String) -> &'a mut Self
pub fn set_tg_type<'a>(&'a mut self, tg_type: String) -> &'a mut Self
The section of the user’s Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”
sourcepub fn get_file_hash<'a>(&'a self) -> &'a str
pub fn get_file_hash<'a>(&'a self) -> &'a str
Base64-encoded hash of the file with the front side of the document
sourcepub fn set_file_hash<'a>(&'a mut self, file_hash: String) -> &'a mut Self
pub fn set_file_hash<'a>(&'a mut self, file_hash: String) -> &'a mut Self
Base64-encoded hash of the file with the front side of the document
sourcepub fn get_message<'a>(&'a self) -> &'a str
pub fn get_message<'a>(&'a self) -> &'a str
Error message
sourcepub fn set_message<'a>(&'a mut self, message: String) -> &'a mut Self
pub fn set_message<'a>(&'a mut self, message: String) -> &'a mut Self
Error message
Trait Implementations§
source§impl Clone for PassportElementErrorFrontSide
impl Clone for PassportElementErrorFrontSide
source§fn clone(&self) -> PassportElementErrorFrontSide
fn clone(&self) -> PassportElementErrorFrontSide
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PassportElementErrorFrontSide
impl Default for PassportElementErrorFrontSide
source§fn default() -> PassportElementErrorFrontSide
fn default() -> PassportElementErrorFrontSide
source§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>,
source§impl From<BoxWrapper<Box<PassportElementErrorFrontSide>>> for PassportElementErrorFrontSide
impl From<BoxWrapper<Box<PassportElementErrorFrontSide>>> for PassportElementErrorFrontSide
source§fn from(t: BoxWrapper<Box<PassportElementErrorFrontSide>>) -> Self
fn from(t: BoxWrapper<Box<PassportElementErrorFrontSide>>) -> Self
source§impl From<BoxWrapper<Unbox<PassportElementErrorFrontSide>>> for PassportElementErrorFrontSide
impl From<BoxWrapper<Unbox<PassportElementErrorFrontSide>>> for PassportElementErrorFrontSide
source§fn from(t: BoxWrapper<Unbox<PassportElementErrorFrontSide>>) -> Self
fn from(t: BoxWrapper<Unbox<PassportElementErrorFrontSide>>) -> Self
source§impl From<NoSkipPassportElementErrorFrontSide> for PassportElementErrorFrontSide
impl From<NoSkipPassportElementErrorFrontSide> for PassportElementErrorFrontSide
source§fn from(t: NoSkipPassportElementErrorFrontSide) -> Self
fn from(t: NoSkipPassportElementErrorFrontSide) -> Self
source§impl Hash for PassportElementErrorFrontSide
impl Hash for PassportElementErrorFrontSide
source§impl Into<NoSkipPassportElementErrorFrontSide> for PassportElementErrorFrontSide
impl Into<NoSkipPassportElementErrorFrontSide> for PassportElementErrorFrontSide
source§fn into(self) -> NoSkipPassportElementErrorFrontSide
fn into(self) -> NoSkipPassportElementErrorFrontSide
source§impl Ord for PassportElementErrorFrontSide
impl Ord for PassportElementErrorFrontSide
source§fn cmp(&self, other: &PassportElementErrorFrontSide) -> Ordering
fn cmp(&self, other: &PassportElementErrorFrontSide) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PassportElementErrorFrontSide
impl PartialEq for PassportElementErrorFrontSide
source§fn eq(&self, other: &PassportElementErrorFrontSide) -> bool
fn eq(&self, other: &PassportElementErrorFrontSide) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PassportElementErrorFrontSide
impl PartialOrd for PassportElementErrorFrontSide
source§fn partial_cmp(&self, other: &PassportElementErrorFrontSide) -> Option<Ordering>
fn partial_cmp(&self, other: &PassportElementErrorFrontSide) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for PassportElementErrorFrontSide
impl StructuralPartialEq for PassportElementErrorFrontSide
Auto Trait Implementations§
impl Freeze for PassportElementErrorFrontSide
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.