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) -> Self
pub fn last_name<F>(self, last_name: F) -> Self
pub fn disable_notification(self) -> Self
pub fn reply_to<R>(self, to: R) -> Selfwhere
R: ToMessageId,
pub fn reply_markup<R>(self, reply_markup: R) -> 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 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<'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 for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> PartialEq for SendContact<'p, 'f, 'l>
Source§impl<'p, 'f, 'l> PartialOrd for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> PartialOrd for SendContact<'p, 'f, 'l>
Source§impl<'p, 'f, 'l> Request for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> Request for SendContact<'p, 'f, 'l>
type Type = JsonRequestType<SendContact<'p, 'f, 'l>>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
Source§impl<'p, 'f, 'l> Serialize for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> Serialize for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> StructuralPartialEq for SendContact<'p, 'f, 'l>
Auto Trait Implementations§
impl<'p, 'f, 'l> Freeze for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> RefUnwindSafe for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> Send for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> Sync for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> Unpin for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> UnwindSafe for SendContact<'p, 'f, 'l>
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