Struct telegram_bot_fork::types::requests::EditMessageLiveLocation
source · pub struct EditMessageLiveLocation { /* private fields */ }
Expand description
Use this method to edit live location messages sent by the bot. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation.
Implementations§
source§impl EditMessageLiveLocation
impl EditMessageLiveLocation
pub fn new<C, M>(
chat: C,
message_id: M,
latitude: f32,
longitude: f32
) -> EditMessageLiveLocationwhere
C: ToChatRef,
M: ToMessageId,
pub fn reply_markup<R>(
&mut self,
reply_markup: R
) -> &mut EditMessageLiveLocationwhere
R: Into<ReplyMarkup>,
Trait Implementations§
source§impl Clone for EditMessageLiveLocation
impl Clone for EditMessageLiveLocation
source§fn clone(&self) -> EditMessageLiveLocation
fn clone(&self) -> EditMessageLiveLocation
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 EditMessageLiveLocation
impl Debug for EditMessageLiveLocation
source§impl PartialEq<EditMessageLiveLocation> for EditMessageLiveLocation
impl PartialEq<EditMessageLiveLocation> for EditMessageLiveLocation
source§fn eq(&self, other: &EditMessageLiveLocation) -> bool
fn eq(&self, other: &EditMessageLiveLocation) -> bool
source§impl PartialOrd<EditMessageLiveLocation> for EditMessageLiveLocation
impl PartialOrd<EditMessageLiveLocation> for EditMessageLiveLocation
source§fn partial_cmp(&self, other: &EditMessageLiveLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &EditMessageLiveLocation) -> 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 EditMessageLiveLocation
impl Request for EditMessageLiveLocation
type Type = JsonRequestType<EditMessageLiveLocation>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
source§impl Serialize for EditMessageLiveLocation
impl Serialize for EditMessageLiveLocation
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