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