podman_client/models/podman/containers/
list_processes.rs1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Default)]
6pub struct ContainerListProcessesOptions<'a> {
7 pub name: &'a str,
8 pub delay: Option<i64>,
9 pub ps_args: Option<Vec<&'a str>>,
10 pub stream: Option<bool>,
11}
12
13#[derive(Deserialize, Serialize)]
14#[serde(rename_all = "PascalCase")]
15pub struct ContainerListProcesses {
16 pub processes: Vec<String>,
17 pub titles: Vec<String>,
18}
19
20impl fmt::Debug for ContainerListProcesses {
21 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
22 let json = serde_json::to_string_pretty(self).map_err(|_| fmt::Error)?;
23 f.write_str(&json)
24 }
25}