Struct telegram_bot_ars::types::requests::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: f32, longitude: f32) -> SendLocationwhere
C: ToChatRef,
sourcepub fn live_period(&mut self, period: i64) -> &mut SendLocation
pub fn live_period(&mut self, period: i64) -> &mut SendLocation
Period in seconds for which the location will be updated, should be between 60 and 86400.
pub fn disable_notification(&mut self) -> &mut SendLocation
pub fn reply_to<R>(&mut self, to: R) -> &mut SendLocationwhere
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut SendLocationwhere
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
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 moresource§impl Request for SendLocation
impl Request for SendLocation
type Type = JsonRequestType<SendLocation>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
source§impl Serialize for SendLocation
impl Serialize for SendLocation
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