Struct podman_api::opts::ContainerRestoreOptsBuilder
source · pub struct ContainerRestoreOptsBuilder { /* private fields */ }Expand description
A builder struct for ContainerRestoreOpts.
Implementations§
source§impl ContainerRestoreOptsBuilder
impl ContainerRestoreOptsBuilder
sourcepub fn build(self) -> ContainerRestoreOpts
pub fn build(self) -> ContainerRestoreOpts
Finish building ContainerRestoreOpts.
source§impl ContainerRestoreOptsBuilder
impl ContainerRestoreOptsBuilder
sourcepub fn ignore_root_fs(self, ignore_root_fs: bool) -> Self
pub fn ignore_root_fs(self, ignore_root_fs: bool) -> Self
Do not include root file-system changes when exporting.
sourcepub fn ignore_static_ip(self, ignore_static_ip: bool) -> Self
pub fn ignore_static_ip(self, ignore_static_ip: bool) -> Self
Ignore IP address if set statically.
sourcepub fn ignore_static_mac(self, ignore_static_mac: bool) -> Self
pub fn ignore_static_mac(self, ignore_static_mac: bool) -> Self
Ignore MAC address if set statically.
sourcepub fn leave_running(self, leave_running: bool) -> Self
pub fn leave_running(self, leave_running: bool) -> Self
Leave the container running after writing checkpoint to disk.
sourcepub fn name(self, name: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
The name of the container when restored from a tar. can only be used with import.
sourcepub fn print_stats(self, print_stats: bool) -> Self
pub fn print_stats(self, print_stats: bool) -> Self
Add restore statistics to the response.
sourcepub fn tcp_established(self, tcp_established: bool) -> Self
pub fn tcp_established(self, tcp_established: bool) -> Self
Checkpoint a container with established TCP connections.
Trait Implementations§
source§impl Clone for ContainerRestoreOptsBuilder
impl Clone for ContainerRestoreOptsBuilder
source§fn clone(&self) -> ContainerRestoreOptsBuilder
fn clone(&self) -> ContainerRestoreOptsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ContainerRestoreOptsBuilder
impl Debug for ContainerRestoreOptsBuilder
source§impl Default for ContainerRestoreOptsBuilder
impl Default for ContainerRestoreOptsBuilder
source§fn default() -> ContainerRestoreOptsBuilder
fn default() -> ContainerRestoreOptsBuilder
Returns the “default value” for a type. Read more