[−][src]Struct container_spec::SpecBuilder
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]
&mut self,
value: VALUE
) -> &mut Self
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]
&mut self,
value: VALUE
) -> &mut Self
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]
&mut self,
value: VALUE
) -> &mut Self
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]
Trait Implementations
impl Clone for SpecBuilder
[src]
fn clone(&self) -> SpecBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for SpecBuilder
[src]
fn default() -> SpecBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for SpecBuilder
impl Send for SpecBuilder
impl Sync for SpecBuilder
impl Unpin for SpecBuilder
impl UnwindSafe for SpecBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,