[−][src]Struct tgbot::types::InputMessageContentContact
Contact message to be sent as the result of an inline query
Methods
impl InputMessageContentContact
[src]
pub fn new<S: Into<String>>(phone_number: S, first_name: S) -> Self
[src]
Creates a new InputMessageContentContact with empty optional parameters
Arguments
- phone_numer - Contact's phone number
- first_name - Contact's first name
pub fn last_name<S: Into<String>>(self, last_name: S) -> Self
[src]
Contact's last name
pub fn vcard<S: Into<String>>(self, vcard: S) -> Self
[src]
Additional data about the contact in the form of a vCard, 0-2048 bytes
Trait Implementations
impl Clone for InputMessageContentContact
[src]
fn clone(&self) -> InputMessageContentContact
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InputMessageContentContact
[src]
impl From<InputMessageContentContact> for InputMessageContent
[src]
fn from(original: InputMessageContentContact) -> InputMessageContent
[src]
impl Serialize for InputMessageContentContact
[src]
Auto Trait Implementations
impl RefUnwindSafe for InputMessageContentContact
impl Send for InputMessageContentContact
impl Sync for InputMessageContentContact
impl Unpin for InputMessageContentContact
impl UnwindSafe for InputMessageContentContact
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,