pub struct StopMessageLiveLocation { /* private fields */ }Expand description
Stops updating a live location message before live_period expires.
Implementations§
Source§impl StopMessageLiveLocation
impl StopMessageLiveLocation
Sourcepub fn for_chat_message<T>(chat_id: T, message_id: Integer) -> Self
pub fn for_chat_message<T>(chat_id: T, message_id: Integer) -> Self
Creates a new StopMessageLiveLocation for a chat message.
§Arguments
chat_id- Unique identifier for the target chat.message_id- Identifier of the sent message.
Sourcepub fn for_inline_message<T>(inline_message_id: T) -> Self
pub fn for_inline_message<T>(inline_message_id: T) -> Self
Creates a new StopMessageLiveLocation for an inline message.
§Arguments
inline_message_id- Identifier of the inline message.
Sourcepub fn with_business_connection_id<T>(self, value: T) -> Self
pub fn with_business_connection_id<T>(self, value: T) -> Self
Sets a new business connection ID.
§Arguments
value- Unique identifier of the business connection on behalf of which the message to be edited was sent.
Sourcepub fn with_reply_markup<T>(self, value: T) -> Selfwhere
T: Into<InlineKeyboardMarkup>,
pub fn with_reply_markup<T>(self, value: T) -> Selfwhere
T: Into<InlineKeyboardMarkup>,
Trait Implementations§
Source§impl Clone for StopMessageLiveLocation
impl Clone for StopMessageLiveLocation
Source§fn clone(&self) -> StopMessageLiveLocation
fn clone(&self) -> StopMessageLiveLocation
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 StopMessageLiveLocation
impl Debug for StopMessageLiveLocation
Source§impl Method for StopMessageLiveLocation
impl Method for StopMessageLiveLocation
Source§type Response = EditMessageResult
type Response = EditMessageResult
The type representing a successful result in an API response.
Source§fn into_payload(self) -> Payload
fn into_payload(self) -> Payload
Converts the method into a payload for an HTTP request.
Auto Trait Implementations§
impl Freeze for StopMessageLiveLocation
impl RefUnwindSafe for StopMessageLiveLocation
impl Send for StopMessageLiveLocation
impl Sync for StopMessageLiveLocation
impl Unpin for StopMessageLiveLocation
impl UnwindSafe for StopMessageLiveLocation
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