pub struct InputMessageContentContact {
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>
Contact’s last name.
vcard: Option<String>
Additional data about the contact in the form of a vCard, 0-2048 bytes.
Implementations§
Source§impl InputMessageContentContact
impl InputMessageContentContact
pub fn new<S1, S2>(phone_number: S1, first_name: S2) -> Self
pub fn phone_number<S>(self, val: S) -> Self
pub fn first_name<S>(self, val: S) -> Self
pub fn last_name<S>(self, val: S) -> Self
pub fn vcard<S>(self, val: S) -> Self
Trait Implementations§
Source§impl Clone for InputMessageContentContact
impl Clone for InputMessageContentContact
Source§fn clone(&self) -> InputMessageContentContact
fn clone(&self) -> InputMessageContentContact
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InputMessageContentContact
impl Debug for InputMessageContentContact
Source§impl<'de> Deserialize<'de> for InputMessageContentContact
impl<'de> Deserialize<'de> for InputMessageContentContact
Source§fn 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
impl StructuralPartialEq for InputMessageContentContact
Auto Trait Implementations§
impl Freeze for InputMessageContentContact
impl RefUnwindSafe for InputMessageContentContact
impl Send for InputMessageContentContact
impl Sync for InputMessageContentContact
impl Unpin for InputMessageContentContact
impl UnwindSafe for InputMessageContentContact
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more