Struct telegram_bot_raw_ars::requests::send_contact::SendContact
source · pub struct SendContact<'p, 'f, 'l> { /* private fields */ }
Expand description
Use this method to send phone contacts.
Implementations§
source§impl<'p, 'f, 'l> SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> SendContact<'p, 'f, 'l>
pub fn new<C, P, F>(chat: C, phone_number: P, first_name: F) -> Selfwhere
C: ToChatRef,
P: Into<Cow<'p, str>>,
F: Into<Cow<'f, str>>,
pub fn last_name<F>(&mut self, last_name: F) -> &mut Selfwhere
F: Into<Cow<'l, str>>,
pub fn disable_notification(&mut self) -> &mut Self
pub fn reply_to<R>(&mut self, to: R) -> &mut Selfwhere
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut Selfwhere
R: Into<ReplyMarkup>,
Trait Implementations§
source§impl<'p, 'f, 'l> Clone for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> Clone for SendContact<'p, 'f, 'l>
source§fn clone(&self) -> SendContact<'p, 'f, 'l>
fn clone(&self) -> SendContact<'p, 'f, 'l>
Returns a copy 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<'p, 'f, 'l> Debug for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> Debug for SendContact<'p, 'f, 'l>
source§impl<'p, 'f, 'l> PartialEq<SendContact<'p, 'f, 'l>> for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> PartialEq<SendContact<'p, 'f, 'l>> for SendContact<'p, 'f, 'l>
source§fn eq(&self, other: &SendContact<'p, 'f, 'l>) -> bool
fn eq(&self, other: &SendContact<'p, 'f, 'l>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'p, 'f, 'l> PartialOrd<SendContact<'p, 'f, 'l>> for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> PartialOrd<SendContact<'p, 'f, 'l>> for SendContact<'p, 'f, 'l>
source§fn partial_cmp(&self, other: &SendContact<'p, 'f, 'l>) -> Option<Ordering>
fn partial_cmp(&self, other: &SendContact<'p, 'f, 'l>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more