Struct telegram_bot_api::types::PassportData
source · [−]pub struct PassportData {
pub data: Vec<EncryptedPassportElement>,
pub credentials: EncryptedCredentials,
}
Expand description
Describes Telegram Passport data shared with the bot by the user.
Fields
data: Vec<EncryptedPassportElement>
Array with information about documents and other Telegram Passport elements that was shared with the bot
credentials: EncryptedCredentials
Encrypted credentials required to decrypt the data
Implementations
sourceimpl PassportData
impl PassportData
pub fn new(
data: Vec<EncryptedPassportElement>,
credentials: EncryptedCredentials
) -> Self
Trait Implementations
sourceimpl Clone for PassportData
impl Clone for PassportData
sourcefn clone(&self) -> PassportData
fn clone(&self) -> PassportData
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 PassportData
impl Debug for PassportData
sourceimpl<'de> Deserialize<'de> for PassportData
impl<'de> Deserialize<'de> for PassportData
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 Serialize for PassportData
impl Serialize for PassportData
Auto Trait Implementations
impl RefUnwindSafe for PassportData
impl Send for PassportData
impl Sync for PassportData
impl Unpin for PassportData
impl UnwindSafe for PassportData
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