[][src]Struct dockworker::ContainerCreateOptions

pub struct ContainerCreateOptions { /* fields omitted */ }

request body of /containers/create api

Methods

impl ContainerCreateOptions[src]

pub fn new(image: &str) -> Self[src]

pub fn hostname(&mut self, hostname: String) -> &mut Self[src]

pub fn domainname(&mut self, domainname: String) -> &mut Self[src]

pub fn user(&mut self, user: String) -> &mut Self[src]

pub fn attach_stdin(&mut self, attach_stdin: bool) -> &mut Self[src]

pub fn attach_stdout(&mut self, attach_stdout: bool) -> &mut Self[src]

pub fn attach_stderr(&mut self, attach_stderr: bool) -> &mut Self[src]

pub fn tty(&mut self, tty: bool) -> &mut Self[src]

pub fn open_stdin(&mut self, open_stdin: bool) -> &mut Self[src]

pub fn stdin_once(&mut self, stdin_once: bool) -> &mut Self[src]

pub fn env(&mut self, env: String) -> &mut Self[src]

push back an envvar entry

pub fn cmd(&mut self, cmd: String) -> &mut Self[src]

push back a cmd argment

pub fn entrypoint(&mut self, entrypoint: Vec<String>) -> &mut Self[src]

update entrypoint

pub fn image(&mut self, image: String) -> &mut Self[src]

pub fn label(&mut self, key: String, value: String) -> &mut Self[src]

add a label/value pair

pub fn working_dir(&mut self, working_dir: PathBuf) -> &mut Self[src]

pub fn network_disabled(&mut self, network_disabled: bool) -> &mut Self[src]

pub fn mac_address(&mut self, mac_address: String) -> &mut Self[src]

pub fn on_build(&mut self, on_build: Vec<String>) -> &mut Self[src]

pub fn stop_signal(&mut self, stop_signal: String) -> &mut Self[src]

pub fn stop_timeout(&mut self, stop_timeout: Duration) -> &mut Self[src]

pub fn host_config(&mut self, host_config: ContainerHostConfig) -> &mut Self[src]

pub fn networking_config(
    &mut self,
    networking_config: NetworkingConfig
) -> &mut Self
[src]

Trait Implementations

impl Clone for ContainerCreateOptions[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ContainerCreateOptions[src]

impl Serialize for ContainerCreateOptions[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Erased for T

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