Struct telegram_bot::types::Location [−][src]
Telegram type "Location" (directly mapped)
Fields
longitude: Float
latitude: Float
Trait Implementations
impl Decodable for Location
[src]
impl Decodable for Location
fn decode<__D: Decoder>(d: &mut __D) -> Result<Location, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<Location, __D::Error>
Deserialize a value using a Decoder
.
impl Encodable for Location
[src]
impl Encodable for Location
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
impl Debug for Location
[src]
impl Debug for Location
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Location
[src]
impl PartialEq for Location
fn eq(&self, other: &Location) -> bool
[src]
fn eq(&self, other: &Location) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Location) -> bool
[src]
fn ne(&self, other: &Location) -> bool
This method tests for !=
.
impl Clone for Location
[src]
impl Clone for Location
fn clone(&self) -> Location
[src]
fn clone(&self) -> Location
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Location
[src]
impl Copy for Location