Struct telegram_bot_raw_ars::requests::send_location::SendLocation
source · pub struct SendLocation { /* private fields */ }
Expand description
Use this method to send point on the map.
Implementations§
source§impl SendLocation
impl SendLocation
pub fn new<C>(chat: C, latitude: Float, longitude: Float) -> Selfwhere
C: ToChatRef,
sourcepub fn live_period(&mut self, period: Integer) -> &mut Self
pub fn live_period(&mut self, period: Integer) -> &mut Self
Period in seconds for which the location will be updated, should be between 60 and 86400.
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 Clone for SendLocation
impl Clone for SendLocation
source§fn clone(&self) -> SendLocation
fn clone(&self) -> SendLocation
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 Debug for SendLocation
impl Debug for SendLocation
source§impl PartialEq<SendLocation> for SendLocation
impl PartialEq<SendLocation> for SendLocation
source§fn eq(&self, other: &SendLocation) -> bool
fn eq(&self, other: &SendLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SendLocation> for SendLocation
impl PartialOrd<SendLocation> for SendLocation
source§fn partial_cmp(&self, other: &SendLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &SendLocation) -> 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