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
40
41
42
43
44
45
46
47
/*
* Revolt API
*
* Open source user-first chat platform.
*
* The version of the OpenAPI document: 0.6.5
* Contact: contact@revolt.chat
* Generated by: https://openapi-generator.tech
*/
/// RevoltConfigBuild : Build information
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RevoltConfigBuild {
/// Commit Hash
#[serde(rename = "commit_sha")]
pub commit_sha: String,
/// Commit Timestamp
#[serde(rename = "commit_timestamp")]
pub commit_timestamp: String,
/// Git Semver
#[serde(rename = "semver")]
pub semver: String,
/// Git Origin URL
#[serde(rename = "origin_url")]
pub origin_url: String,
/// Build Timestamp
#[serde(rename = "timestamp")]
pub timestamp: String,
}
impl RevoltConfigBuild {
/// Build information
pub fn new(commit_sha: String, commit_timestamp: String, semver: String, origin_url: String, timestamp: String) -> RevoltConfigBuild {
RevoltConfigBuild {
commit_sha,
commit_timestamp,
semver,
origin_url,
timestamp,
}
}
}