teloxide/src/types/location.rs

12 lines
301 B
Rust
Raw Normal View History

2020-08-12 18:39:40 +02:00
use serde::{Deserialize, Serialize};
/// This object represents a point on the map.
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Location {
/// Longitude as defined by sender.
pub longitude: f64,
/// Latitude as defined by sender.
pub latitude: f64,
}