use crate::wire::breezemoon::WireBreezemoon;
#[derive(Clone, Debug)]
#[non_exhaustive]
pub struct Breezemoon {
pub id: String,
pub author_name: String,
pub author_avatar: String,
pub content: String,
pub city: String,
pub created: String,
pub create_time: String,
pub updated: String,
pub time_ago: String,
}
impl From<WireBreezemoon> for Breezemoon {
fn from(w: WireBreezemoon) -> Self {
Breezemoon {
id: w.o_id,
author_name: w.author_name,
author_avatar: w.thumbnail_url48,
content: w.content,
city: w.city,
created: w.created,
create_time: w.create_time,
updated: w.updated,
time_ago: w.time_ago,
}
}
}