podman_client/models/podman/images/
pull.rs1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Default)]
6pub struct ImagePullOptions<'a> {
7 pub all_tags: Option<bool>,
8 pub arch: Option<&'a str>,
9 pub compat_mode: Option<bool>,
10 pub os: Option<&'a str>,
11 pub policy: Option<&'a str>,
12 pub quite: Option<bool>,
13 pub reference: Option<&'a str>,
14 pub tls_verify: Option<bool>,
15 pub variant: Option<&'a str>,
16 pub x_registry_auth: Option<&'a str>,
17}
18
19#[derive(Deserialize, Serialize)]
20pub struct ImagePull {
21 pub error: String,
22 pub id: String,
23 pub images: Vec<String>,
24 pub stream: String,
25}
26
27impl fmt::Debug for ImagePull {
28 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
29 let json = serde_json::to_string_pretty(self).map_err(|_| fmt::Error)?;
30 f.write_str(&json)
31 }
32}