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: Float,
longitude: Float,
) -> Selfwhere
C: ToChatRef,
M: ToMessageId,
pub fn reply_markup<R>(self, reply_markup: R) -> Selfwhere
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 duplicate 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 for EditMessageLiveLocation
impl PartialEq for EditMessageLiveLocation
Source§impl PartialOrd for EditMessageLiveLocation
impl PartialOrd for EditMessageLiveLocation
Source§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
impl StructuralPartialEq for EditMessageLiveLocation
Auto Trait Implementations§
impl Freeze for EditMessageLiveLocation
impl RefUnwindSafe for EditMessageLiveLocation
impl Send for EditMessageLiveLocation
impl Sync for EditMessageLiveLocation
impl Unpin for EditMessageLiveLocation
impl UnwindSafe for EditMessageLiveLocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more