pub struct PassportElementErrorUnspecifiedBuilder {
pub source: String,
pub tg_type: String,
pub element_hash: String,
pub message: String,
}
Expand description
Represents an issue in an unspecified place. The error is considered resolved when new data is added.
Fields§
§source: String
Error source, must be unspecified
tg_type: String
Type of element of the user’s Telegram Passport which has the issue
element_hash: String
Base64-encoded element hash
message: String
Error message
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
source§impl Ord for PassportElementErrorUnspecifiedBuilder
impl Ord for PassportElementErrorUnspecifiedBuilder
source§fn cmp(&self, other: &PassportElementErrorUnspecifiedBuilder) -> Ordering
fn cmp(&self, other: &PassportElementErrorUnspecifiedBuilder) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PassportElementErrorUnspecifiedBuilder
impl PartialEq for PassportElementErrorUnspecifiedBuilder
source§fn eq(&self, other: &PassportElementErrorUnspecifiedBuilder) -> bool
fn eq(&self, other: &PassportElementErrorUnspecifiedBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PassportElementErrorUnspecifiedBuilder
impl PartialOrd for PassportElementErrorUnspecifiedBuilder
source§fn partial_cmp(
&self,
other: &PassportElementErrorUnspecifiedBuilder,
) -> Option<Ordering>
fn partial_cmp( &self, other: &PassportElementErrorUnspecifiedBuilder, ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for PassportElementErrorUnspecifiedBuilder
impl StructuralPartialEq for PassportElementErrorUnspecifiedBuilder
Auto Trait Implementations§
impl Freeze for PassportElementErrorUnspecifiedBuilder
impl RefUnwindSafe for PassportElementErrorUnspecifiedBuilder
impl Send for PassportElementErrorUnspecifiedBuilder
impl Sync for PassportElementErrorUnspecifiedBuilder
impl Unpin for PassportElementErrorUnspecifiedBuilder
impl UnwindSafe for PassportElementErrorUnspecifiedBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.