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