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
Auto Trait Implementations§
impl Freeze for ContainerRestoreOptsBuilder
impl RefUnwindSafe for ContainerRestoreOptsBuilder
impl Send for ContainerRestoreOptsBuilder
impl Sync for ContainerRestoreOptsBuilder
impl Unpin for ContainerRestoreOptsBuilder
impl UnwindSafe for ContainerRestoreOptsBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more