pub struct PassportElementErrorUnspecifiedBuilder { /* private fields */ }
Expand description
Represents an issue in an unspecified place. The error is considered resolved when new data is added.
Implementations§
source§impl PassportElementErrorUnspecifiedBuilder
impl PassportElementErrorUnspecifiedBuilder
pub fn new(source: String, element_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 unspecified
sourcepub fn set_type(self, tg_type: String) -> Self
pub fn set_type(self, tg_type: String) -> Self
Type of element of the user’s Telegram Passport which has the issue
sourcepub fn set_element_hash(self, element_hash: String) -> Self
pub fn set_element_hash(self, element_hash: String) -> Self
Base64-encoded element hash
sourcepub fn set_message(self, message: String) -> Self
pub fn set_message(self, message: String) -> Self
Error message
pub fn build(self) -> PassportElementErrorUnspecified
Trait Implementations§
source§impl Clone for PassportElementErrorUnspecifiedBuilder
impl Clone for PassportElementErrorUnspecifiedBuilder
source§fn clone(&self) -> PassportElementErrorUnspecifiedBuilder
fn clone(&self) -> PassportElementErrorUnspecifiedBuilder
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 PassportElementErrorUnspecifiedBuilder
impl Default for PassportElementErrorUnspecifiedBuilder
source§fn default() -> PassportElementErrorUnspecifiedBuilder
fn default() -> PassportElementErrorUnspecifiedBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PassportElementErrorUnspecifiedBuilder
impl<'de> Deserialize<'de> for PassportElementErrorUnspecifiedBuilder
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