#[cfg(feature = "places-new-ascii-art")]
mod ascii_art;
pub mod photo_image;
pub use crate::places_new::place_photos::image::response::photo_image::PhotoImage;
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct Response(pub(crate) Vec<u8>);
impl std::ops::Deref for Response {
type Target = Vec<u8>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl std::ops::DerefMut for Response {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl AsRef<Vec<u8>> for Response {
fn as_ref(&self) -> &Vec<u8> {
&self.0
}
}
impl AsMut<Vec<u8>> for Response {
fn as_mut(&mut self) -> &mut Vec<u8> {
&mut self.0
}
}
impl std::convert::From<Response> for Result<Response, crate::Error> {
fn from(response: Response) -> Self {
Ok(response)
}
}