Skip to content

Commit

Permalink
Add more derives to ImageVolumeMode and SocketNotifyMode
Browse files Browse the repository at this point in the history
Signed-off-by: xtex <[email protected]>
  • Loading branch information
xtexChooser committed Sep 10, 2023
1 parent 41faadc commit 61c3826
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/opts/containers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ impl_opts_builder!(json =>
ContainerCreate
);

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
/// Mode used to configure image volume with
/// [`image_volume_mode`](ContainerCreateOptsBuilder::image_volume_mode).
#[derive(Default)]
Expand Down Expand Up @@ -322,8 +322,10 @@ impl fmt::Display for ImageVolumeMode {
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
/// How to handle the `NOTIFY_SOCKET`. Used with
/// [`sdnotify_mode`](ContainerCreateOptsBuilder::sdnotify_mode).
#[derive(Default)]
pub enum SocketNotifyMode {
/// Let the OCI runtime deal with it, advertise conmon's MAINPID.
#[default]
Container,
/// Advertise conmon's MAINPID, send READY when started, don't pass to OCI.
Conmon,
Expand Down

0 comments on commit 61c3826

Please sign in to comment.