pub struct ContainerAsTarballOptsBuilder { /* private fields */ }
Expand description
Builder for ContainerAsTarballOpts
.
Implementations§
Source§impl ContainerAsTarballOptsBuilder
impl ContainerAsTarballOptsBuilder
Sourcepub fn forced_compression<VALUE: Into<ImageLayerCompression>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn forced_compression<VALUE: Into<ImageLayerCompression>>( &mut self, value: VALUE, ) -> &mut Self
Force each layer of the image to use the specified compression algorithm. If this is unset, then if a layer already has a compressed blob in the engine’s cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine’s cache, then it will be compressed using Gzip.
Sourcepub fn media_types<VALUE: Into<ImageMediaTypes>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn media_types<VALUE: Into<ImageMediaTypes>>( &mut self, value: VALUE, ) -> &mut Self
Use the specified media types for the image’s layers. Defaults to OCI, which is largely compatible with most recent container runtimes, but Docker may be needed for older runtimes without OCI support.
Sourcepub fn platform_variants<VALUE: Into<Vec<ContainerId>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn platform_variants<VALUE: Into<Vec<ContainerId>>>( &mut self, value: VALUE, ) -> &mut Self
Identifiers for other platform specific containers. Used for multi-platform images.
Sourcepub fn build(
&self,
) -> Result<ContainerAsTarballOpts, ContainerAsTarballOptsBuilderError>
pub fn build( &self, ) -> Result<ContainerAsTarballOpts, ContainerAsTarballOptsBuilderError>
Trait Implementations§
Source§impl Clone for ContainerAsTarballOptsBuilder
impl Clone for ContainerAsTarballOptsBuilder
Source§fn clone(&self) -> ContainerAsTarballOptsBuilder
fn clone(&self) -> ContainerAsTarballOptsBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ContainerAsTarballOptsBuilder
impl RefUnwindSafe for ContainerAsTarballOptsBuilder
impl Send for ContainerAsTarballOptsBuilder
impl Sync for ContainerAsTarballOptsBuilder
impl Unpin for ContainerAsTarballOptsBuilder
impl UnwindSafe for ContainerAsTarballOptsBuilder
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