television_utils/
metadata.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
pub struct BuildMetadata {
    pub rustc_version: String,
    pub build_date: String,
    pub target_triple: String,
}

impl BuildMetadata {
    pub fn new(
        rustc_version: String,
        build_date: String,
        target_triple: String,
    ) -> Self {
        Self {
            rustc_version,
            build_date,
            target_triple,
        }
    }
}

pub struct AppMetadata {
    pub version: String,
    pub build: BuildMetadata,
    pub current_directory: String,
}

impl AppMetadata {
    pub fn new(
        version: String,
        build: BuildMetadata,
        current_directory: String,
    ) -> Self {
        Self {
            version,
            build,
            current_directory,
        }
    }
}