[][src]Struct oci_spec::runtime::Spec

pub struct Spec {
    pub version: String,
    pub process: Option<Process>,
    pub root: Option<Root>,
    pub hostname: Option<String>,
    pub mounts: Option<Vec<Mount>>,
    pub hooks: Option<Hooks>,
    pub annotations: Option<HashMap<String, String>>,
    pub linux: Option<Linux>,
    pub solaris: Option<Solaris>,
    pub windows: Option<Windows>,
    pub vm: Option<VM>,
}

Fields

version: Stringprocess: Option<Process>root: Option<Root>hostname: Option<String>mounts: Option<Vec<Mount>>hooks: Option<Hooks>annotations: Option<HashMap<String, String>>linux: Option<Linux>solaris: Option<Solaris>windows: Option<Windows>vm: Option<VM>

Methods

impl Spec[src]

pub fn load(path: &str) -> Result<Spec, OciSpecError>[src]

pub fn save(&self, path: &str) -> Result<(), OciSpecError>[src]

Trait Implementations

impl Debug for Spec[src]

impl Serialize for Spec[src]

impl<'de> Deserialize<'de> for Spec[src]

Auto Trait Implementations

impl Send for Spec

impl Sync for Spec

impl Unpin for Spec

impl UnwindSafe for Spec

impl RefUnwindSafe for Spec

Blanket Implementations

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

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

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]