Struct teloxide::types::PassportElementErrorSelfie
source · pub struct PassportElementErrorSelfie {
pub type: PassportElementErrorSelfieType,
pub file_hash: String,
}
Expand description
The error is considered resolved when the file with the selfie changes.
Fields§
§type: PassportElementErrorSelfieType
The section of the user’s Telegram Passport which has the issue.
file_hash: String
Base64-encoded hash of the file with the selfie.
Implementations§
source§impl PassportElementErrorSelfie
impl PassportElementErrorSelfie
pub fn new<S>(
type: PassportElementErrorSelfieType,
file_hash: S
) -> PassportElementErrorSelfiewhere
S: Into<String>,
pub fn type(
self,
val: PassportElementErrorSelfieType
) -> PassportElementErrorSelfie
pub fn file_hash<S>(self, val: S) -> PassportElementErrorSelfiewhere
S: Into<String>,
Trait Implementations§
source§impl Clone for PassportElementErrorSelfie
impl Clone for PassportElementErrorSelfie
source§fn clone(&self) -> PassportElementErrorSelfie
fn clone(&self) -> PassportElementErrorSelfie
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 Debug for PassportElementErrorSelfie
impl Debug for PassportElementErrorSelfie
source§impl<'de> Deserialize<'de> for PassportElementErrorSelfie
impl<'de> Deserialize<'de> for PassportElementErrorSelfie
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<PassportElementErrorSelfie, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PassportElementErrorSelfie, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for PassportElementErrorSelfie
impl Hash for PassportElementErrorSelfie
source§impl PartialEq<PassportElementErrorSelfie> for PassportElementErrorSelfie
impl PartialEq<PassportElementErrorSelfie> for PassportElementErrorSelfie
source§fn eq(&self, other: &PassportElementErrorSelfie) -> bool
fn eq(&self, other: &PassportElementErrorSelfie) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PassportElementErrorSelfie
impl Serialize for PassportElementErrorSelfie
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for PassportElementErrorSelfie
impl StructuralEq for PassportElementErrorSelfie
impl StructuralPartialEq for PassportElementErrorSelfie
Auto Trait Implementations§
impl RefUnwindSafe for PassportElementErrorSelfie
impl Send for PassportElementErrorSelfie
impl Sync for PassportElementErrorSelfie
impl Unpin for PassportElementErrorSelfie
impl UnwindSafe for PassportElementErrorSelfie
Blanket Implementations§
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.