Struct tg_flows::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: PassportElementErrorDataFieldTypeThe section of the user’s Telegram Passport which has the error.
field_name: StringName of the data field which has the error.
data_hash: StringBase64-encoded data hash.
Implementations§
source§impl PassportElementErrorDataField
impl PassportElementErrorDataField
pub fn new<S1, S2>( type: PassportElementErrorDataFieldType, field_name: S1, data_hash: S2 ) -> Selfwhere S1: Into<String>, S2: Into<String>,
pub fn type(self, val: PassportElementErrorDataFieldType) -> Self
pub fn field_name<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn data_hash<S>(self, val: S) -> Selfwhere 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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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 ==.