Struct telegram_bot::types::requests::SendLocation
[−]
[src]
#[must_use = "requests do nothing unless sent"]pub struct SendLocation { /* fields omitted */ }
Use this method to send point on the map.
Methods
impl SendLocation
[src]
fn new<C>(chat: C, latitude: f32, longitude: f32) -> SendLocation where
C: ToChatRef,
[src]
C: ToChatRef,
fn live_period(&mut self, period: i64) -> &mut SendLocation
[src]
Period in seconds for which the location will be updated, should be between 60 and 86400.
fn disable_notification(&mut self) -> &mut SendLocation
[src]
fn reply_to<R>(&mut self, to: R) -> &mut SendLocation where
R: ToMessageId,
[src]
R: ToMessageId,
fn reply_markup<R>(&mut self, reply_markup: R) -> &mut SendLocation where
R: Into<ReplyMarkup>,
[src]
R: Into<ReplyMarkup>,
Trait Implementations
impl Clone for SendLocation
[src]
fn clone(&self) -> SendLocation
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Request for SendLocation
[src]
type Type = JsonRequestType<SendLocation>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Serialize for SendLocation
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,