Struct frankenstein::objects::InlineQueryResultContact
source · [−]pub struct InlineQueryResultContact {
pub id: String,
pub phone_number: String,
pub first_name: String,
pub last_name: Option<String>,
pub vcard: Option<String>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
pub thumb_url: Option<String>,
pub thumb_width: Option<u32>,
pub thumb_height: Option<u32>,
}
Fields
id: String
phone_number: String
first_name: String
last_name: Option<String>
vcard: Option<String>
reply_markup: Option<InlineKeyboardMarkup>
input_message_content: Option<InputMessageContent>
thumb_url: Option<String>
thumb_width: Option<u32>
thumb_height: Option<u32>
Implementations
sourceimpl InlineQueryResultContact
impl InlineQueryResultContact
sourcepub fn builder(
) -> InlineQueryResultContactBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> InlineQueryResultContactBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building InlineQueryResultContact
.
On the builder, call .id(...)
, .phone_number(...)
, .first_name(...)
, .last_name(...)
(optional), .vcard(...)
(optional), .reply_markup(...)
(optional), .input_message_content(...)
(optional), .thumb_url(...)
(optional), .thumb_width(...)
(optional), .thumb_height(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InlineQueryResultContact
.
Trait Implementations
sourceimpl Clone for InlineQueryResultContact
impl Clone for InlineQueryResultContact
sourcefn clone(&self) -> InlineQueryResultContact
fn clone(&self) -> InlineQueryResultContact
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InlineQueryResultContact
impl Debug for InlineQueryResultContact
sourceimpl<'de> Deserialize<'de> for InlineQueryResultContact
impl<'de> Deserialize<'de> for InlineQueryResultContact
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 PartialEq<InlineQueryResultContact> for InlineQueryResultContact
impl PartialEq<InlineQueryResultContact> for InlineQueryResultContact
sourcefn eq(&self, other: &InlineQueryResultContact) -> bool
fn eq(&self, other: &InlineQueryResultContact) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InlineQueryResultContact) -> bool
fn ne(&self, other: &InlineQueryResultContact) -> bool
This method tests for !=
.
sourceimpl Serialize for InlineQueryResultContact
impl Serialize for InlineQueryResultContact
impl StructuralPartialEq for InlineQueryResultContact
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultContact
impl Send for InlineQueryResultContact
impl Sync for InlineQueryResultContact
impl Unpin for InlineQueryResultContact
impl UnwindSafe for InlineQueryResultContact
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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