userlib/dto/footer_response.rs
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct FooterResponse {
pub build_date: String,
pub current_year: i32,
pub version_project: String,
}
impl FooterResponse {
pub fn new() -> FooterResponse {
// Change to a actual implementation
FooterResponse {
build_date: "2021.1".to_string(),
current_year: 2021,
version_project: "2021.1".to_string(),
}
}
}