userlib/dto/
footer_response.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize, Debug)]
4#[serde(rename_all = "camelCase")]
5pub struct FooterResponse {
6    pub build_date: String,
7    pub current_year: i32,
8    pub version_project: String,
9}
10
11impl FooterResponse {
12    pub fn new() -> FooterResponse {
13        // Change to a actual implementation
14        FooterResponse {
15            build_date: "2021.1".to_string(),
16            current_year: 2021,
17            version_project: "2021.1".to_string(),
18        }
19    }
20}