Struct telegram_bot_fork_raw::requests::send_venue::SendVenue
source · pub struct SendVenue<'t, 'a, 'f> { /* private fields */ }
Expand description
Use this method to send information about a venue.
Implementations
sourceimpl<'t, 'a, 'f> SendVenue<'t, 'a, 'f>
impl<'t, 'a, 'f> SendVenue<'t, 'a, 'f>
pub fn new<C, T, A>(
chat: C,
latitude: Float,
longitude: Float,
title: T,
address: A
) -> Selfwhere
C: ToChatRef,
T: Into<Cow<'t, str>>,
A: Into<Cow<'a, str>>,
pub fn disable_notification(&mut self) -> &mut Self
pub fn foursquare_id<F>(&mut self, id: F) -> &mut Selfwhere
F: Into<Cow<'f, str>>,
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
sourceimpl<'t, 'a, 'f> PartialEq<SendVenue<'t, 'a, 'f>> for SendVenue<'t, 'a, 'f>
impl<'t, 'a, 'f> PartialEq<SendVenue<'t, 'a, 'f>> for SendVenue<'t, 'a, 'f>
sourceimpl<'t, 'a, 'f> PartialOrd<SendVenue<'t, 'a, 'f>> for SendVenue<'t, 'a, 'f>
impl<'t, 'a, 'f> PartialOrd<SendVenue<'t, 'a, 'f>> for SendVenue<'t, 'a, 'f>
sourcefn partial_cmp(&self, other: &SendVenue<'t, 'a, 'f>) -> Option<Ordering>
fn partial_cmp(&self, other: &SendVenue<'t, 'a, 'f>) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl<'t, 'a, 'f> Request for SendVenue<'t, 'a, 'f>
impl<'t, 'a, 'f> Request for SendVenue<'t, 'a, 'f>
type Type = JsonRequestType<SendVenue<'t, 'a, 'f>>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
impl<'t, 'a, 'f> StructuralPartialEq for SendVenue<'t, 'a, 'f>
Auto Trait Implementations
impl<'t, 'a, 'f> RefUnwindSafe for SendVenue<'t, 'a, 'f>
impl<'t, 'a, 'f> Send for SendVenue<'t, 'a, 'f>
impl<'t, 'a, 'f> Sync for SendVenue<'t, 'a, 'f>
impl<'t, 'a, 'f> Unpin for SendVenue<'t, 'a, 'f>
impl<'t, 'a, 'f> UnwindSafe for SendVenue<'t, 'a, 'f>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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