pub struct PassportElementErrorFrontSideBuilder { /* private fields */ }
Expand description
Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.
Implementations§
source§impl PassportElementErrorFrontSideBuilder
impl PassportElementErrorFrontSideBuilder
pub fn new(source: String, file_hash: String, message: String) -> Self
sourcepub fn set_source(self, source: String) -> Self
pub fn set_source(self, source: String) -> Self
Error source, must be front_side
sourcepub fn set_type(self, tg_type: String) -> Self
pub fn set_type(self, tg_type: String) -> Self
The section of the user’s Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”
sourcepub fn set_file_hash(self, file_hash: String) -> Self
pub fn set_file_hash(self, file_hash: String) -> Self
Base64-encoded hash of the file with the front side of the document
sourcepub fn set_message(self, message: String) -> Self
pub fn set_message(self, message: String) -> Self
Error message
pub fn build(self) -> PassportElementErrorFrontSide
Trait Implementations§
source§impl Clone for PassportElementErrorFrontSideBuilder
impl Clone for PassportElementErrorFrontSideBuilder
source§fn clone(&self) -> PassportElementErrorFrontSideBuilder
fn clone(&self) -> PassportElementErrorFrontSideBuilder
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 Default for PassportElementErrorFrontSideBuilder
impl Default for PassportElementErrorFrontSideBuilder
source§fn default() -> PassportElementErrorFrontSideBuilder
fn default() -> PassportElementErrorFrontSideBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PassportElementErrorFrontSideBuilder
impl<'de> Deserialize<'de> for PassportElementErrorFrontSideBuilder
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