Struct docker_sdk::container::ContainerOptions
source · Expand description
Interface for building a new docker container from an existing image
Fields
name: Option<String>
Implementations
sourceimpl ContainerOptions
impl ContainerOptions
sourcepub fn builder(name: &str) -> ContainerOptionsBuilder
pub fn builder(name: &str) -> ContainerOptionsBuilder
return a new instance of a builder for options
sourcepub fn serialize(&self) -> Result<String>
pub fn serialize(&self) -> Result<String>
serialize options as a string. returns None if no options are defined
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
sourceimpl Debug for ContainerOptions
impl Debug for ContainerOptions
sourceimpl Serialize for ContainerOptions
impl Serialize for ContainerOptions
Auto Trait Implementations
impl RefUnwindSafe for ContainerOptions
impl Send for ContainerOptions
impl Sync for ContainerOptions
impl Unpin for ContainerOptions
impl UnwindSafe for ContainerOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more