Struct teloxide::types::PassportElementErrorFile
source · pub struct PassportElementErrorFile {
pub type: PassportElementErrorFileType,
pub file_hash: String,
}
Expand description
Represents an issue with a document scan.
The error is considered resolved when the file with the document scan changes.
Fields§
§type: PassportElementErrorFileType
The section of the user’s Telegram Passport which has the issue.
file_hash: String
Base64-encoded file hash.
Implementations§
source§impl PassportElementErrorFile
impl PassportElementErrorFile
pub fn new<S>(
type: PassportElementErrorFileType,
file_hash: S
) -> PassportElementErrorFilewhere
S: Into<String>,
pub fn type(self, val: PassportElementErrorFileType) -> PassportElementErrorFile
pub fn file_hash<S>(self, val: S) -> PassportElementErrorFilewhere
S: Into<String>,
Trait Implementations§
source§impl Clone for PassportElementErrorFile
impl Clone for PassportElementErrorFile
source§fn clone(&self) -> PassportElementErrorFile
fn clone(&self) -> PassportElementErrorFile
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 PassportElementErrorFile
impl Debug for PassportElementErrorFile
source§impl<'de> Deserialize<'de> for PassportElementErrorFile
impl<'de> Deserialize<'de> for PassportElementErrorFile
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<PassportElementErrorFile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PassportElementErrorFile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for PassportElementErrorFile
impl Hash for PassportElementErrorFile
source§impl PartialEq<PassportElementErrorFile> for PassportElementErrorFile
impl PartialEq<PassportElementErrorFile> for PassportElementErrorFile
source§fn eq(&self, other: &PassportElementErrorFile) -> bool
fn eq(&self, other: &PassportElementErrorFile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PassportElementErrorFile
impl Serialize for PassportElementErrorFile
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 PassportElementErrorFile
impl StructuralEq for PassportElementErrorFile
impl StructuralPartialEq for PassportElementErrorFile
Auto Trait Implementations§
impl RefUnwindSafe for PassportElementErrorFile
impl Send for PassportElementErrorFile
impl Sync for PassportElementErrorFile
impl Unpin for PassportElementErrorFile
impl UnwindSafe for PassportElementErrorFile
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.