pub struct Service {
Show 42 fields pub hostname: Option<String>, pub privileged: bool, pub healthcheck: Option<Healthcheck>, pub deploy: Option<Deploy>, pub image: Option<String>, pub container_name: Option<String>, pub build_: Option<BuildStep>, pub pid: Option<String>, pub ports: Option<Vec<String>>, pub environment: Option<Environment>, pub network_mode: Option<String>, pub devices: Option<Vec<String>>, pub restart: Option<String>, pub labels: Option<Labels>, pub ulimits: Option<Ulimits>, pub volumes: Option<Volumes>, pub networks: Option<Networks>, pub cap_add: Option<Vec<String>>, pub depends_on: Option<DependsOnOptions>, pub command: Option<Command>, pub entrypoint: Option<Entrypoint>, pub env_file: Option<EnvFile>, pub stop_grace_period: Option<String>, pub profiles: Option<Vec<String>>, pub links: Option<Vec<String>>, pub dns: Option<Vec<String>>, pub ipc: Option<String>, pub net: Option<String>, pub stop_signal: Option<String>, pub user: Option<String>, pub working_dir: Option<String>, pub expose: Vec<String>, pub volumes_from: Vec<String>, pub extends: Option<IndexMap<String, String>>, pub logging: Option<LoggingParameters>, pub scale: i64, pub init: bool, pub stdin_open: bool, pub shm_size: Option<String>, pub extensions: IndexMap<Extension, Value>, pub extra_hosts: Option<Vec<String>>, pub tty: Option<bool>,
}

Fields§

§hostname: Option<String>§privileged: bool§healthcheck: Option<Healthcheck>§deploy: Option<Deploy>§image: Option<String>§container_name: Option<String>§build_: Option<BuildStep>§pid: Option<String>§ports: Option<Vec<String>>§environment: Option<Environment>§network_mode: Option<String>§devices: Option<Vec<String>>§restart: Option<String>§labels: Option<Labels>§ulimits: Option<Ulimits>§volumes: Option<Volumes>§networks: Option<Networks>§cap_add: Option<Vec<String>>§depends_on: Option<DependsOnOptions>§command: Option<Command>§entrypoint: Option<Entrypoint>§env_file: Option<EnvFile>§stop_grace_period: Option<String>§profiles: Option<Vec<String>>§links: Option<Vec<String>>§dns: Option<Vec<String>>§ipc: Option<String>§net: Option<String>§stop_signal: Option<String>§user: Option<String>§working_dir: Option<String>§expose: Vec<String>§volumes_from: Vec<String>§extends: Option<IndexMap<String, String>>§logging: Option<LoggingParameters>§scale: i64§init: bool§stdin_open: bool§shm_size: Option<String>§extensions: IndexMap<Extension, Value>§extra_hosts: Option<Vec<String>>§tty: Option<bool>

Implementations§

source§

impl Service

source

pub fn image(&self) -> &str

source

pub fn network_mode(&self) -> &str

Trait Implementations§

source§

impl Clone for Service

source§

fn clone(&self) -> Service

Returns a copy 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 Service

source§

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

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

impl Default for Service

source§

fn default() -> Service

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Service

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 PartialEq<Service> for Service

source§

fn eq(&self, other: &Service) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Service

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
source§

impl StructuralPartialEq for Service

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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