(&self)
| 35 | /// Return the policy string expected by the Podman libpod API. |
| 36 | #[must_use] |
| 37 | pub fn as_str(&self) -> &'static str { |
| 38 | match self { |
| 39 | Self::Always => "always", |
| 40 | Self::Missing => "missing", |
| 41 | Self::Never => "never", |
| 42 | Self::Newer => "newer", |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | impl std::fmt::Display for ImagePullPolicy { |
no outgoing calls