[][src]Struct wf2_core::dc_service::DcService

pub struct DcService {
    pub name: String,
    pub container_name: String,
    pub image: String,
    pub volumes: Option<Vec<String>>,
    pub env_file: Option<Vec<String>>,
    pub restart: Option<String>,
    pub labels: Option<Vec<String>>,
    pub depends_on: Option<Vec<String>>,
    pub ports: Option<Vec<String>>,
    pub working_dir: Option<String>,
    pub command: Option<String>,
    pub environment: Option<Vec<String>>,
    pub init: Option<bool>,
}

Fields

name: Stringcontainer_name: Stringimage: Stringvolumes: 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]

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]

pub fn set_environment(
    &mut self,
    environment: Vec<impl Into<String>>
) -> &mut Self
[src]

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]

impl Serialize for DcService[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,