[][src]Struct container_spec::SpecBuilder

pub struct SpecBuilder { /* fields omitted */ }

Builder for Spec.

Methods

impl SpecBuilder[src]

pub fn version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

Version of the Open Container Initiative Runtime Specification with which the bundle complies.

pub fn process<VALUE: Into<Option<Process>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Process configures the container process.

pub fn root<VALUE: Into<Option<Root>>>(&mut self, value: VALUE) -> &mut Self[src]

Root configures the container's root filesystem.

pub fn hostname<VALUE: Into<Option<String>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Hostname configures the container's hostname.

pub fn mounts<VALUE: Into<Vec<Mount>>>(&mut self, value: VALUE) -> &mut Self[src]

Mounts configures additional mounts (on top of Root).

pub fn hooks<VALUE: Into<Option<Hooks>>>(&mut self, value: VALUE) -> &mut Self[src]

Hooks configures callbacks for container lifecycle events.

pub fn annotations<VALUE: Into<HashMap<String, String>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Annotations contains arbitrary metadata for the container.

pub fn linux<VALUE: Into<Option<Linux>>>(&mut self, value: VALUE) -> &mut Self[src]

Linux is platform-specific configuration for Linux based containers.

pub fn build(&self) -> Result<Spec, String>[src]

Builds a new Spec.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for SpecBuilder[src]

impl Default for SpecBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.