docker_sync/
image.rs

1#[derive(Serialize, Deserialize, Debug)]
2#[allow(non_snake_case)]
3pub struct Image {
4    pub Created: u64,
5    pub Id: String,
6    pub ParentId: String,
7    pub RepoTags: Vec<String>,
8    pub Size: u64,
9    pub VirtualSize: u64,
10}
11
12impl Clone for Image {
13    fn clone(&self) -> Self {
14        Image {
15            Created: self.Created,
16            Id: self.Id.clone(),
17            ParentId: self.ParentId.clone(),
18            RepoTags: self.RepoTags.clone(),
19            Size: self.Size,
20            VirtualSize: self.VirtualSize,
21        }
22    }
23}
24
25#[derive(Serialize, Deserialize, Debug)]
26pub struct ImageStatus {
27    pub status: Option<String>,
28    pub error: Option<String>,
29}
30
31impl Clone for ImageStatus {
32    fn clone(&self) -> Self {
33        ImageStatus {
34            status: self.status.clone(),
35            error: self.status.clone(),
36        }
37    }
38}