rs_docker/
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        let image = 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        return image;
23    }
24}
25
26#[derive(Serialize, Deserialize, Debug)]
27pub struct ImageStatus {
28    pub status: Option<String>,
29    pub error: Option<String>,
30}
31
32impl Clone for ImageStatus {
33    fn clone(&self) -> Self {
34        let image_status = ImageStatus {
35            status: self.status.clone(),
36            error: self.status.clone(),
37        };
38        return image_status;
39    }
40}