podman_client/models/podman/secrets/
create.rs

1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Default)]
6pub struct SecretCreateOptions<'a> {
7    pub driver: Option<&'a str>,
8    pub driver_opts: Option<&'a str>,
9    pub labels: Option<&'a str>,
10    pub name: &'a str,
11    pub secret: &'a str,
12}
13
14#[derive(Deserialize, Serialize)]
15#[serde(rename_all = "UPPERCASE")]
16pub struct SecretCreate {
17    pub id: String,
18}
19
20impl fmt::Debug for SecretCreate {
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}