Struct telegram_bot_fork_raw::types::message::Location
source · Expand description
This object represents a point on the map.
Fields
longitude: Float
Longitude as defined by sender.
latitude: Float
Latitude as defined by sender.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
sourcefn 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
sourceimpl PartialOrd<Location> for Location
impl PartialOrd<Location> for Location
sourcefn partial_cmp(&self, other: &Location) -> Option<Ordering>
fn partial_cmp(&self, other: &Location) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<'b> ToReplyRequest<'b> for Location
impl<'b> ToReplyRequest<'b> for Location
type Request = SendLocation
type Request = SendLocation
Request type.
sourcefn to_reply_request<M>(&'b self, message: M) -> Self::Requestwhere
M: ToMessageId + ToSourceChat,
fn to_reply_request<M>(&'b self, message: M) -> Self::Requestwhere
M: ToMessageId + ToSourceChat,
Convert type to request and reply to the message.
sourceimpl<'b> ToRequest<'b> for Location
impl<'b> ToRequest<'b> for Location
type Request = SendLocation
type Request = SendLocation
Request type.
sourcefn to_request<C>(&'b self, chat: C) -> Self::Requestwhere
C: ToChatRef,
fn to_request<C>(&'b self, chat: C) -> Self::Requestwhere
C: ToChatRef,
Convert type to request and send it to the chat.
impl StructuralPartialEq for Location
Auto Trait Implementations
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more