Struct telegram_bot_api::types::InputContactMessageContent
source · [−]pub struct InputContactMessageContent {
pub phone_number: String,
pub first_name: String,
pub last_name: Option<String>,
pub vcard: Option<String>,
}
Expand description
Represents the content of a contact message to be sent as the result of an inline query.
Fields
phone_number: String
Contact’s phone number
first_name: String
Contact’s first name
last_name: Option<String>
Optional. Contact’s last name
vcard: Option<String>
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
Implementations
Trait Implementations
sourceimpl Clone for InputContactMessageContent
impl Clone for InputContactMessageContent
sourcefn clone(&self) -> InputContactMessageContent
fn clone(&self) -> InputContactMessageContent
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 InputContactMessageContent
impl Debug for InputContactMessageContent
sourceimpl<'de> Deserialize<'de> for InputContactMessageContent
impl<'de> Deserialize<'de> for InputContactMessageContent
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
Auto Trait Implementations
impl RefUnwindSafe for InputContactMessageContent
impl Send for InputContactMessageContent
impl Sync for InputContactMessageContent
impl Unpin for InputContactMessageContent
impl UnwindSafe for InputContactMessageContent
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