podman_client/models/podman/containers/
delete.rs

1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Default)]
6pub struct ContainerDeleteOptions<'a> {
7    pub name: &'a str,
8    pub depend: Option<bool>,
9    pub force: Option<bool>,
10    pub ignore: Option<bool>,
11    pub timeout: Option<i64>,
12    pub v: Option<bool>,
13}
14
15pub type ContainerDelete = Vec<ContainerDeleteItem>;
16
17#[derive(Deserialize, Serialize)]
18#[serde(rename_all = "PascalCase")]
19pub struct ContainerDeleteItem {
20    pub err: Option<String>,
21    pub id: String,
22}
23
24impl fmt::Debug for ContainerDeleteItem {
25    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
26        let json = serde_json::to_string_pretty(self).map_err(|_| fmt::Error)?;
27        f.write_str(&json)
28    }
29}