pub struct BundleBuilder { /* private fields */ }Expand description
Bundle builder for creating new bundles.
Implementations§
Source§impl BundleBuilder
impl BundleBuilder
Sourcepub fn add_env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn add_env(self, key: impl Into<String>, value: impl Into<String>) -> Self
Add an environment variable.
Sourcepub const fn readonly_rootfs(self, readonly: bool) -> Self
pub const fn readonly_rootfs(self, readonly: bool) -> Self
Set rootfs as read-only.
Sourcepub fn annotation(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn annotation( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Add an annotation.
Trait Implementations§
Source§impl Debug for BundleBuilder
impl Debug for BundleBuilder
Auto Trait Implementations§
impl Freeze for BundleBuilder
impl RefUnwindSafe for BundleBuilder
impl Send for BundleBuilder
impl Sync for BundleBuilder
impl Unpin for BundleBuilder
impl UnsafeUnpin for BundleBuilder
impl UnwindSafe for BundleBuilder
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