podman_rest_client/v5/models/publish_status.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// PublishStatus represents the status of the volume as published to an
4/// individual node
5pub struct PublishStatus {
6 /// NodeID is the ID of the swarm node this Volume is published to.
7 #[serde(rename = "NodeID")]
8 pub node_id: Option<String>,
9 /// PublishContext is the PublishContext returned by the CSI plugin when
10 /// a volume is published.
11 #[serde(rename = "PublishContext")]
12 pub publish_context: Option<std::collections::HashMap<String, String>>,
13 #[serde(rename = "State")]
14 pub state: Option<String>,
15}