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<P, F>(chat: i64, phone_number: P, first_name: F) -> Self
pub fn last_name<F>(&mut self, last_name: F) -> &mut Self
pub fn disable_notification(&mut self) -> &mut Self
pub fn reply_to(&mut self, to: i64) -> &mut Self
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§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> 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>
Source§impl<'p, 'f, 'l> TGReq for SendContact<'p, 'f, 'l>
impl<'p, 'f, 'l> TGReq for SendContact<'p, 'f, 'l>
type Resp = RespType<PossibilityMessage>
fn request(&self) -> TGBotResult<HttpReq>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more