userlib/dto/
footer_response.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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(),
        }
    }
}