Skip to main content

ComposeService

Struct ComposeService 

Source
pub struct ComposeService {
Show 50 fields pub image: Option<String>, pub build: Option<Value>, pub ports: Vec<Value>, pub volumes: Vec<Value>, pub environment: Option<Value>, pub env_file: Option<Value>, pub depends_on: Option<Value>, pub networks: Option<Value>, pub command: Option<Value>, pub entrypoint: Option<Value>, pub restart: Option<String>, pub deploy: Option<ComposeDeploy>, pub healthcheck: Option<ComposeHealthcheck>, pub container_name: Option<String>, pub hostname: Option<String>, pub labels: Option<Value>, pub logging: Option<Value>, pub expose: Vec<Value>, pub extra_hosts: Option<Value>, pub working_dir: Option<String>, pub user: Option<String>, pub privileged: Option<bool>, pub cap_add: Vec<String>, pub cap_drop: Vec<String>, pub security_opt: Vec<String>, pub tmpfs: Option<Value>, pub stdin_open: Option<bool>, pub tty: Option<bool>, pub secrets: Option<Value>, pub configs: Option<Value>, pub profiles: Vec<String>, pub platform: Option<String>, pub init: Option<bool>, pub stop_grace_period: Option<String>, pub sysctls: Option<Value>, pub ulimits: Option<Value>, pub pull_policy: Option<String>, pub mem_limit: Option<String>, pub cpus: Option<Value>, pub shm_size: Option<Value>, pub pid: Option<String>, pub network_mode: Option<String>, pub links: Vec<String>, pub external_links: Vec<String>, pub dns: Option<Value>, pub dns_search: Option<Value>, pub domainname: Option<String>, pub ipc: Option<String>, pub mac_address: Option<String>, pub extends: Option<Value>,
}

Fields§

§image: Option<String>§build: Option<Value>§ports: Vec<Value>§volumes: Vec<Value>§environment: Option<Value>§env_file: Option<Value>§depends_on: Option<Value>§networks: Option<Value>§command: Option<Value>§entrypoint: Option<Value>§restart: Option<String>§deploy: Option<ComposeDeploy>§healthcheck: Option<ComposeHealthcheck>§container_name: Option<String>§hostname: Option<String>§labels: Option<Value>§logging: Option<Value>§expose: Vec<Value>§extra_hosts: Option<Value>§working_dir: Option<String>§user: Option<String>§privileged: Option<bool>§cap_add: Vec<String>§cap_drop: Vec<String>§security_opt: Vec<String>§tmpfs: Option<Value>§stdin_open: Option<bool>§tty: Option<bool>§secrets: Option<Value>§configs: Option<Value>§profiles: Vec<String>§platform: Option<String>§init: Option<bool>§stop_grace_period: Option<String>§sysctls: Option<Value>§ulimits: Option<Value>§pull_policy: Option<String>§mem_limit: Option<String>§cpus: Option<Value>§shm_size: Option<Value>§pid: Option<String>§network_mode: Option<String>§links: Vec<String>§external_links: Vec<String>§dns: Option<Value>§dns_search: Option<Value>§domainname: Option<String>§ipc: Option<String>§mac_address: Option<String>§extends: Option<Value>

Trait Implementations§

Source§

impl Clone for ComposeService

Source§

fn clone(&self) -> ComposeService

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ComposeService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ComposeService

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ComposeService

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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