huellas/src/place.rs

15 lines
347 B
Rust
Raw Normal View History

2022-07-17 17:04:48 -04:00
use rocket::serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(crate = "rocket::serde")]
pub struct Place {
pub id: Option<i64>,
pub name: String,
pub address: String,
pub open_hours: String,
pub icon: String,
pub description: String,
pub longitude: f32,
pub latitude: f32,
}