Struct telegram_bot_api::methods::SetPassportDataErrors
source · [−]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
sourceimpl SetPassportDataErrors
impl SetPassportDataErrors
pub fn new(user_id: i64, errors: Vec<PassportElementError>) -> Self
Trait Implementations
sourceimpl Clone for SetPassportDataErrors
impl Clone for SetPassportDataErrors
sourcefn clone(&self) -> SetPassportDataErrors
fn clone(&self) -> SetPassportDataErrors
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SetPassportDataErrors
impl Debug for SetPassportDataErrors
sourceimpl<'de> Deserialize<'de> for SetPassportDataErrors
impl<'de> Deserialize<'de> for SetPassportDataErrors
sourcefn 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
sourceimpl Methods for SetPassportDataErrors
impl Methods for SetPassportDataErrors
sourceimpl Serialize for SetPassportDataErrors
impl Serialize for SetPassportDataErrors
Auto Trait Implementations
impl RefUnwindSafe for SetPassportDataErrors
impl Send for SetPassportDataErrors
impl Sync for SetPassportDataErrors
impl Unpin for SetPassportDataErrors
impl UnwindSafe for SetPassportDataErrors
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more