Struct ocf::Spec [] [src]

pub struct Spec {
    pub version: Version,
    pub platform: Platform,
    pub process: Process,
    pub root: Root,
    pub hostname: Option<String>,
    pub mounts: Vec<MountPoint>,
}

Fields

version
platform
process
root
hostname
mounts

Methods

impl Spec

fn version(&self) -> &Version

fn platform(&self) -> &Platform

fn process(&self) -> &Process

fn root(&self) -> &Root

fn hostname(&self) -> Option<&str>

fn mounts(&self) -> &[MountPoint]

impl Spec

fn from_read<R: Read>(r: R) -> Result<Self>

Trait Implementations

impl Deserialize for Spec

fn deserialize<D: Deserializer>(d: &mut D) -> Result<Self, D::Error>

impl Serialize for Spec

fn serialize<S: Serializer>(&self, s: &mut S) -> Result<(), S::Error>

Derived Implementations

impl Debug for Spec

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Spec

fn clone(&self) -> Spec

fn clone_from(&mut self, source: &Self)