blob: 0736617f08121302e6a93d1d617ab2e4358881e3 (
plain) (
tree)
|
|
use crate::models::PhotoSet;
#[derive(Debug, Serialize)]
pub struct PhotoSetGet {
pub id: i32,
pub original: String,
pub fullsize: String,
pub base: String,
pub thumbnail: String,
}
impl From<PhotoSet> for PhotoSetGet {
fn from(p: PhotoSet) -> Self {
Self {
id: p.id.unwrap_or(-1),
original: p.original.id,
fullsize: p.fullsize.id,
base: p.base.id,
thumbnail: p.thumbnail.id,
}
}
}
|