pub struct Location {
pub longitude: f32,
pub latitude: f32,
}Expand description
This object represents a point on the map.
Fields§
§longitude: f32Longitude as defined by sender.
latitude: f32Latitude as defined by sender.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Location, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Location, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialOrd for Location
impl PartialOrd for Location
Source§impl<'b> ToReplyRequest<'b> for Location
impl<'b> ToReplyRequest<'b> for Location
Source§type Request = SendLocation
type Request = SendLocation
Request type.
Source§fn to_reply_request<M>(
&'b self,
message: M,
) -> <Location as ToReplyRequest<'b>>::Requestwhere
M: ToMessageId + ToSourceChat,
fn to_reply_request<M>(
&'b self,
message: M,
) -> <Location as ToReplyRequest<'b>>::Requestwhere
M: ToMessageId + ToSourceChat,
Convert type to request and reply to the message.
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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