pub struct SetPassportDataErrors {
pub user_id: i64,
pub errors: Vec<PassportElementError>,
}
Expand description
Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns True on success.
Fields§
§user_id: i64
User identifier
errors: Vec<PassportElementError>
A JSON-serialized array describing the errors
Implementations§
Source§impl SetPassportDataErrors
impl SetPassportDataErrors
pub fn new(user_id: i64, errors: Vec<PassportElementError>) -> Self
Trait Implementations§
Source§impl Clone for SetPassportDataErrors
impl Clone for SetPassportDataErrors
Source§fn clone(&self) -> SetPassportDataErrors
fn clone(&self) -> SetPassportDataErrors
Returns a duplicate 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 Debug for SetPassportDataErrors
impl Debug for SetPassportDataErrors
Source§impl<'de> Deserialize<'de> for SetPassportDataErrors
impl<'de> Deserialize<'de> for SetPassportDataErrors
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 Methods for SetPassportDataErrors
impl Methods for SetPassportDataErrors
Auto Trait Implementations§
impl Freeze for SetPassportDataErrors
impl RefUnwindSafe for SetPassportDataErrors
impl Send for SetPassportDataErrors
impl Sync for SetPassportDataErrors
impl Unpin for SetPassportDataErrors
impl UnwindSafe for SetPassportDataErrors
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