Struct telexide::api::types::EditMessageLiveLocation
source · pub struct EditMessageLiveLocation {
pub chat_id: Option<i64>,
pub message_id: Option<i64>,
pub inline_message_id: Option<String>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub latitude: f64,
pub longitude: f64,
pub horizontal_accuracy: Option<f64>,
pub heading: Option<i64>,
pub proximity_alert_radius: Option<i64>,
}
Expand description
struct for holding data needed to call
edit_message_live_location
Fields§
§chat_id: Option<i64>
Unique identifier for the target chat
message_id: Option<i64>
Identifier of the message to edit
inline_message_id: Option<String>
Identifier of the inline message
reply_markup: Option<InlineKeyboardMarkup>
Inline keyboard
latitude: f64
Latitude of the location
longitude: f64
Longitude of the location
horizontal_accuracy: Option<f64>
The radius of uncertainty for the location, measured in meters; 0-1500
heading: Option<i64>
Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
proximity_alert_radius: Option<i64>
Maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
Implementations§
source§impl EditMessageLiveLocation
impl EditMessageLiveLocation
pub fn new(latitude: f64, longitude: f64) -> Self
pub fn set_chat_id(&mut self, chat_id: i64) -> &mut Self
pub fn set_message_id(&mut self, message_id: i64) -> &mut Self
pub fn set_inline_message_id( &mut self, inline_message_id: impl ToString ) -> &mut Self
pub fn set_reply_markup( &mut self, reply_markup: InlineKeyboardMarkup ) -> &mut Self
pub fn set_horizontal_accuracy(&mut self, horizontal_accuracy: f64) -> &mut Self
pub fn set_heading(&mut self, heading: i64) -> &mut Self
pub fn set_proximity_alert_radius( &mut self, proximity_alert_radius: i64 ) -> &mut Self
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<'de> Deserialize<'de> for EditMessageLiveLocation
impl<'de> Deserialize<'de> for EditMessageLiveLocation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for EditMessageLiveLocation
impl PartialEq for EditMessageLiveLocation
source§fn eq(&self, other: &EditMessageLiveLocation) -> bool
fn eq(&self, other: &EditMessageLiveLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EditMessageLiveLocation
impl Serialize for EditMessageLiveLocation
impl StructuralPartialEq for EditMessageLiveLocation
Auto Trait Implementations§
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