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