pub struct ContainerCreateOptions { /* private fields */ }Expand description
request body of /containers/create api
Implementations§
Source§impl ContainerCreateOptions
impl ContainerCreateOptions
pub fn new(image: &str) -> Self
pub fn hostname(&mut self, hostname: String) -> &mut Self
pub fn domainname(&mut self, domainname: String) -> &mut Self
pub fn user(&mut self, user: String) -> &mut Self
pub fn attach_stdin(&mut self, attach_stdin: bool) -> &mut Self
pub fn attach_stdout(&mut self, attach_stdout: bool) -> &mut Self
pub fn attach_stderr(&mut self, attach_stderr: bool) -> &mut Self
pub fn tty(&mut self, tty: bool) -> &mut Self
pub fn open_stdin(&mut self, open_stdin: bool) -> &mut Self
pub fn stdin_once(&mut self, stdin_once: bool) -> &mut Self
Sourcepub fn entrypoint(&mut self, entrypoint: Vec<String>) -> &mut Self
pub fn entrypoint(&mut self, entrypoint: Vec<String>) -> &mut Self
update entrypoint
pub fn image(&mut self, image: String) -> &mut Self
pub fn working_dir(&mut self, working_dir: PathBuf) -> &mut Self
pub fn network_disabled(&mut self, network_disabled: bool) -> &mut Self
pub fn mac_address(&mut self, mac_address: String) -> &mut Self
pub fn on_build(&mut self, on_build: Vec<String>) -> &mut Self
pub fn stop_signal(&mut self, stop_signal: String) -> &mut Self
pub fn stop_timeout(&mut self, stop_timeout: Duration) -> &mut Self
pub fn host_config(&mut self, host_config: ContainerHostConfig) -> &mut Self
pub fn networking_config( &mut self, networking_config: NetworkingConfig, ) -> &mut Self
pub fn exposed_ports(&mut self, exposed_ports: ExposedPorts) -> &mut Self
pub fn healthcheck(&mut self, healthcheck: HealthcheckConfig) -> &mut Self
Trait Implementations§
Source§impl Clone for ContainerCreateOptions
impl Clone for ContainerCreateOptions
Source§fn clone(&self) -> ContainerCreateOptions
fn clone(&self) -> ContainerCreateOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContainerCreateOptions
impl Debug for ContainerCreateOptions
Source§impl<'de> Deserialize<'de> for ContainerCreateOptions
impl<'de> Deserialize<'de> for ContainerCreateOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContainerCreateOptions
impl RefUnwindSafe for ContainerCreateOptions
impl Send for ContainerCreateOptions
impl Sync for ContainerCreateOptions
impl Unpin for ContainerCreateOptions
impl UnwindSafe for ContainerCreateOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more