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, ) -> SendContact<'p, 'f, 'l>
pub fn last_name<F>(&mut self, last_name: F) -> &mut SendContact<'p, 'f, 'l>
pub fn disable_notification(&mut self) -> &mut SendContact<'p, 'f, 'l>
pub fn reply_to<R>(&mut self, to: R) -> &mut SendContact<'p, 'f, 'l>where
R: ToMessageId,
pub fn reply_markup<R>(
&mut self,
reply_markup: R,
) -> &mut SendContact<'p, 'f, 'l>where
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>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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> UnsafeUnpin 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