[−][src]Struct carapax::prelude::methods::SetPassportDataErrors
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
Methods
impl SetPassportDataErrors
[src]
pub fn new(
user_id: i64,
errors: Vec<PassportElementError>
) -> SetPassportDataErrors
[src]
user_id: i64,
errors: Vec<PassportElementError>
) -> SetPassportDataErrors
Creates a new SetPassportDataErrors
Arguments
- user_id - User identifier
- errors - Array describing the errors
Trait Implementations
impl Serialize for SetPassportDataErrors
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Debug for SetPassportDataErrors
[src]
impl Method for SetPassportDataErrors
[src]
type Response = bool
Type of successful result in API response
fn get_request(&self) -> Result<RequestBuilder, Error>
[src]
impl Clone for SetPassportDataErrors
[src]
fn clone(&self) -> SetPassportDataErrors
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for SetPassportDataErrors
impl Sync for SetPassportDataErrors
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,