pub struct SpecBuilder { /* private fields */ }
Expand description
Builder for Spec
.
Implementations§
Source§impl SpecBuilder
impl SpecBuilder
Sourcepub fn version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Version of the Open Container Initiative Runtime Specification with which the bundle complies.
Sourcepub fn process<VALUE: Into<Option<Process>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn process<VALUE: Into<Option<Process>>>( &mut self, value: VALUE, ) -> &mut Self
Process configures the container process.
Sourcepub fn root<VALUE: Into<Option<Root>>>(&mut self, value: VALUE) -> &mut Self
pub fn root<VALUE: Into<Option<Root>>>(&mut self, value: VALUE) -> &mut Self
Root configures the container’s root filesystem.
Sourcepub fn hostname<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn hostname<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Hostname configures the container’s hostname.
Sourcepub fn mounts<VALUE: Into<Vec<Mount>>>(&mut self, value: VALUE) -> &mut Self
pub fn mounts<VALUE: Into<Vec<Mount>>>(&mut self, value: VALUE) -> &mut Self
Mounts configures additional mounts (on top of Root).
Sourcepub fn hooks<VALUE: Into<Option<Hooks>>>(&mut self, value: VALUE) -> &mut Self
pub fn hooks<VALUE: Into<Option<Hooks>>>(&mut self, value: VALUE) -> &mut Self
Hooks configures callbacks for container lifecycle events.
Sourcepub fn annotations<VALUE: Into<HashMap<String, String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn annotations<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
Annotations contains arbitrary metadata for the container.
Trait Implementations§
Source§impl Clone for SpecBuilder
impl Clone for SpecBuilder
Source§fn clone(&self) -> SpecBuilder
fn clone(&self) -> SpecBuilder
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 Default for SpecBuilder
impl Default for SpecBuilder
Source§fn default() -> SpecBuilder
fn default() -> SpecBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpecBuilder
impl RefUnwindSafe for SpecBuilder
impl Send for SpecBuilder
impl Sync for SpecBuilder
impl Unpin for SpecBuilder
impl UnwindSafe for SpecBuilder
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