[−][src]Struct wf2_core::dc_service::DcService
Fields
name: String
container_name: String
image: String
volumes: Option<Vec<String>>
env_file: Option<Vec<String>>
restart: Option<String>
labels: Option<Vec<String>>
depends_on: Option<Vec<String>>
ports: Option<Vec<String>>
working_dir: Option<String>
command: Option<String>
environment: Option<Vec<String>>
init: Option<bool>
Methods
impl DcService
[src]
pub fn new(
ctx_name: impl Into<String>,
name: impl Into<String>,
image: impl Into<String>
) -> DcService
[src]
ctx_name: impl Into<String>,
name: impl Into<String>,
image: impl Into<String>
) -> DcService
pub fn set_volumes(&mut self, volumes: Vec<impl Into<String>>) -> &mut Self
[src]
pub fn set_ports(&mut self, ports: Vec<impl Into<String>>) -> &mut Self
[src]
pub fn set_command(&mut self, command: impl Into<String>) -> &mut Self
[src]
pub fn set_labels(&mut self, labels: Vec<impl Into<String>>) -> &mut Self
[src]
pub fn set_env_file(&mut self, env_file: Vec<impl Into<String>>) -> &mut Self
[src]
pub fn set_depends_on(
&mut self,
depends_on: Vec<impl Into<String>>
) -> &mut Self
[src]
&mut self,
depends_on: Vec<impl Into<String>>
) -> &mut Self
pub fn set_environment(
&mut self,
environment: Vec<impl Into<String>>
) -> &mut Self
[src]
&mut self,
environment: Vec<impl Into<String>>
) -> &mut Self
pub fn set_restart(&mut self, restart: impl Into<String>) -> &mut Self
[src]
pub fn set_working_dir(&mut self, working_dir: impl Into<String>) -> &mut Self
[src]
pub fn set_init(&mut self, init: bool) -> &mut Self
[src]
pub fn build(&self) -> DcService
[src]
Trait Implementations
impl Clone for DcService
[src]
impl Default for DcService
[src]
impl Debug for DcService
[src]
impl<'de> Deserialize<'de> for DcService
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DcService
[src]
Auto Trait Implementations
impl Send for DcService
impl Sync for DcService
impl Unpin for DcService
impl UnwindSafe for DcService
impl RefUnwindSafe for DcService
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,