podman_rest_client/v5/models/secret.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// Secret represents a Swarm Secret value that must be passed to the CSI
4/// storage plugin when operating on this Volume. It represents one key-value
5/// pair of possibly many.
6pub struct Secret {
7 /// Key is the name of the key of the key-value pair passed to the plugin.
8 #[serde(rename = "Key")]
9 pub key: Option<String>,
10 /// Secret is the swarm Secret object from which to read data. This can be a
11 /// Secret name or ID. The Secret data is retrieved by Swarm and used as the
12 /// value of the key-value pair passed to the plugin.
13 #[serde(rename = "Secret")]
14 pub secret: Option<String>,
15}