use crate::places::status::Status;
use crate::places::Place;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
pub struct Response {
#[serde(default)]
pub html_attributions: Vec<String>,
pub result: Option<Place>,
pub status: Status,
#[serde(default)]
pub info_messages: Vec<String>,
}
impl std::str::FromStr for Response {
type Err = serde_json::error::Error;
fn from_str(s: &str) -> Result<Self, serde_json::error::Error> {
serde_json::from_str(s)
} }