pub struct StopInlineMessageLiveLocation {
pub inline_message_id: String,
pub reply_markup: Option<InlineKeyboardMarkup>,
}Expand description
Use this method to stop updating a live location message before live_period expires. On success, True is returned.
Fields§
§inline_message_id: StringIdentifier of the inline message
reply_markup: Option<InlineKeyboardMarkup>A JSON-serialized object for a new inline keyboard.
Implementations§
Source§impl StopInlineMessageLiveLocation
impl StopInlineMessageLiveLocation
Sourcepub fn new(inline_message_id: impl Into<String>) -> Self
pub fn new(inline_message_id: impl Into<String>) -> Self
Create a new stopMessageLiveLocation request
Sourcepub fn with_reply_markup(self, markup: impl Into<InlineKeyboardMarkup>) -> Self
pub fn with_reply_markup(self, markup: impl Into<InlineKeyboardMarkup>) -> Self
Set reply markup
Trait Implementations§
Source§impl Clone for StopInlineMessageLiveLocation
impl Clone for StopInlineMessageLiveLocation
Source§fn clone(&self) -> StopInlineMessageLiveLocation
fn clone(&self) -> StopInlineMessageLiveLocation
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 moreimpl JsonMethod for StopInlineMessageLiveLocation
Auto Trait Implementations§
impl Freeze for StopInlineMessageLiveLocation
impl RefUnwindSafe for StopInlineMessageLiveLocation
impl Send for StopInlineMessageLiveLocation
impl Sync for StopInlineMessageLiveLocation
impl Unpin for StopInlineMessageLiveLocation
impl UnwindSafe for StopInlineMessageLiveLocation
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