[][src]Struct actix_telegram::methods::SetPassportDataErrors

pub struct SetPassportDataErrors { /* fields omitted */ }

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. 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 set_user_id<__T: Into<Integer>>(&mut self, val: __T) -> &mut Self
[src]

User identifier

pub fn set_errors<__T: Into<Vec<PassportElementError>>>(
    &mut self,
    val: __T
) -> &mut Self
[src]

A JSON-serialized array describing the errors

impl SetPassportDataErrors
[src]

pub fn new(
    user_id: impl Into<Integer>,
    errors: impl Into<Vec<PassportElementError>>
) -> Self
[src]

Trait Implementations

impl Debug for SetPassportDataErrors
[src]

impl Message for SetPassportDataErrors
[src]

type Result = Result<True, ()>

The type of value that this message will resolved with if it is successful. Read more

impl Handler<SetPassportDataErrors> for TelegramApi
[src]

type Result = Box<dyn Future<Item = True, Error = ()>>

The type of value that this handle will return

impl Serialize for SetPassportDataErrors
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T