blob: e24a691cd423e1cc0aa27cb117125e462a69187c (
plain) (
tree)
|
|
#[derive(Debug, Clone)]
pub struct Photo {
pub id: String,
}
impl Photo {
pub fn new(id: String) -> Self {
Self { id }
}
pub fn filename(&self) -> String {
format!("{}.jpg", self.id)
}
}
|