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: StringContact’s phone number
first_name: StringContact’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§
Source§impl InputContactMessageContent
impl InputContactMessageContent
pub fn noskip(self) -> NoSkipInputContactMessageContent
Source§impl InputContactMessageContent
impl InputContactMessageContent
pub fn new(phone_number: String, first_name: String) -> Self
Sourcepub fn get_phone_number<'a>(&'a self) -> &'a str
pub fn get_phone_number<'a>(&'a self) -> &'a str
Contact’s phone number
Sourcepub fn set_phone_number<'a>(&'a mut self, phone_number: String) -> &'a mut Self
pub fn set_phone_number<'a>(&'a mut self, phone_number: String) -> &'a mut Self
Contact’s phone number
Sourcepub fn get_first_name<'a>(&'a self) -> &'a str
pub fn get_first_name<'a>(&'a self) -> &'a str
Contact’s first name
Sourcepub fn set_first_name<'a>(&'a mut self, first_name: String) -> &'a mut Self
pub fn set_first_name<'a>(&'a mut self, first_name: String) -> &'a mut Self
Contact’s first name
Sourcepub fn get_last_name<'a>(&'a self) -> Option<&'a str>
pub fn get_last_name<'a>(&'a self) -> Option<&'a str>
Optional. Contact’s last name
Sourcepub fn set_last_name<'a>(
&'a mut self,
last_name: Option<String>,
) -> &'a mut Self
pub fn set_last_name<'a>( &'a mut self, last_name: Option<String>, ) -> &'a mut Self
Optional. Contact’s last name
Trait Implementations§
Source§impl Clone for InputContactMessageContent
impl Clone for InputContactMessageContent
Source§fn clone(&self) -> InputContactMessageContent
fn clone(&self) -> InputContactMessageContent
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 InputContactMessageContent
impl Debug for InputContactMessageContent
Source§impl Default for InputContactMessageContent
impl Default for InputContactMessageContent
Source§fn default() -> InputContactMessageContent
fn default() -> InputContactMessageContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputContactMessageContent
impl<'de> Deserialize<'de> for InputContactMessageContent
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
Source§impl From<BoxWrapper<Box<InputContactMessageContent>>> for InputContactMessageContent
impl From<BoxWrapper<Box<InputContactMessageContent>>> for InputContactMessageContent
Source§fn from(t: BoxWrapper<Box<InputContactMessageContent>>) -> Self
fn from(t: BoxWrapper<Box<InputContactMessageContent>>) -> Self
Converts to this type from the input type.
Source§impl From<BoxWrapper<Unbox<InputContactMessageContent>>> for InputContactMessageContent
impl From<BoxWrapper<Unbox<InputContactMessageContent>>> for InputContactMessageContent
Source§fn from(t: BoxWrapper<Unbox<InputContactMessageContent>>) -> Self
fn from(t: BoxWrapper<Unbox<InputContactMessageContent>>) -> Self
Converts to this type from the input type.
Source§impl From<NoSkipInputContactMessageContent> for InputContactMessageContent
impl From<NoSkipInputContactMessageContent> for InputContactMessageContent
Source§fn from(t: NoSkipInputContactMessageContent) -> Self
fn from(t: NoSkipInputContactMessageContent) -> Self
Converts to this type from the input type.
Source§impl Hash for InputContactMessageContent
impl Hash for InputContactMessageContent
Source§impl Into<NoSkipInputContactMessageContent> for InputContactMessageContent
impl Into<NoSkipInputContactMessageContent> for InputContactMessageContent
Source§fn into(self) -> NoSkipInputContactMessageContent
fn into(self) -> NoSkipInputContactMessageContent
Converts this type into the (usually inferred) input type.
Source§impl Ord for InputContactMessageContent
impl Ord for InputContactMessageContent
Source§fn cmp(&self, other: &InputContactMessageContent) -> Ordering
fn cmp(&self, other: &InputContactMessageContent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for InputContactMessageContent
impl PartialOrd for InputContactMessageContent
impl Eq for InputContactMessageContent
impl StructuralPartialEq for InputContactMessageContent
Auto Trait Implementations§
impl Freeze for InputContactMessageContent
impl RefUnwindSafe for InputContactMessageContent
impl Send for InputContactMessageContent
impl Sync for InputContactMessageContent
impl Unpin for InputContactMessageContent
impl UnsafeUnpin for InputContactMessageContent
impl UnwindSafe for InputContactMessageContent
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.