Struct tgbot::types::SetPassportDataErrors
source · pub struct SetPassportDataErrors { /* private fields */ }
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.
Use this if the data submitted by the user doesn’t satisfy the standards your service requires for any reason.
For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc.
Supply some details in the error message to make sure the user knows how to correct the issues.
Implementations§
source§impl SetPassportDataErrors
impl SetPassportDataErrors
sourcepub fn new<T>(user_id: Integer, errors: T) -> Selfwhere
T: IntoIterator<Item = PassportElementError>,
pub fn new<T>(user_id: Integer, errors: T) -> Selfwhere
T: IntoIterator<Item = PassportElementError>,
Creates a new SetPassportDataErrors
.
§Arguments
user_id
- An identifier of a user.errors
- An array describing the errors.
Trait Implementations§
source§impl Clone for SetPassportDataErrors
impl Clone for SetPassportDataErrors
source§fn clone(&self) -> SetPassportDataErrors
fn clone(&self) -> SetPassportDataErrors
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 Debug for SetPassportDataErrors
impl Debug for SetPassportDataErrors
source§impl Method for SetPassportDataErrors
impl Method 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