Struct telexide::api::types::PassportElementErrorUnspecified
source · pub struct PassportElementErrorUnspecified {
pub section_type: TelegramPassportElement,
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§
§section_type: TelegramPassportElement
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 PassportElementErrorUnspecified
impl PassportElementErrorUnspecified
pub fn new( section_type: TelegramPassportElement, element_hash: impl ToString, message: impl ToString ) -> Self
Trait Implementations§
source§impl Clone for PassportElementErrorUnspecified
impl Clone for PassportElementErrorUnspecified
source§fn clone(&self) -> PassportElementErrorUnspecified
fn clone(&self) -> PassportElementErrorUnspecified
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 PassportElementErrorUnspecified
impl<'de> Deserialize<'de> for PassportElementErrorUnspecified
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 PartialEq for PassportElementErrorUnspecified
impl PartialEq for PassportElementErrorUnspecified
source§fn eq(&self, other: &PassportElementErrorUnspecified) -> bool
fn eq(&self, other: &PassportElementErrorUnspecified) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PassportElementErrorUnspecified
impl StructuralEq for PassportElementErrorUnspecified
impl StructuralPartialEq for PassportElementErrorUnspecified
Auto Trait Implementations§
impl RefUnwindSafe for PassportElementErrorUnspecified
impl Send for PassportElementErrorUnspecified
impl Sync for PassportElementErrorUnspecified
impl Unpin for PassportElementErrorUnspecified
impl UnwindSafe for PassportElementErrorUnspecified
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> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.