[−][src]Struct dockworker::ContainerCreateOptions
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]
&mut self,
networking_config: NetworkingConfig
) -> &mut Self
Trait Implementations
impl Clone for ContainerCreateOptions
[src]
fn clone(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ContainerCreateOptions
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ContainerCreateOptions
impl Sync for ContainerCreateOptions
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,