Type Alias ContainerOptions

Source
pub type ContainerOptions = ContainerOptions;
👎Deprecated since 0.8.0: Please use docker_sdk::container::ContainerOptions. This will be removed in 0.9.0.

Aliased Type§

pub struct ContainerOptions {
    pub name: Option<String>,
    /* private fields */
}

Fields§

§name: Option<String>

Implementations

Source§

impl ContainerOptions

Source

pub fn builder(name: &str) -> ContainerOptionsBuilder

return a new instance of a builder for options

Source

pub fn serialize(&self) -> Result<String>

serialize options as a string. returns None if no options are defined

Source

pub fn parse_from<'a, K, V>(&self, params: &'a HashMap<K, V>, body: &mut Value)
where &'a HashMap<K, V>: IntoIterator, K: ToString + Eq + Hash, V: Serialize,

Trait Implementations

Source§

impl Debug for ContainerOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for ContainerOptions

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more