pub struct Service {
Show 50 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: Ports, pub environment: Environment, pub network_mode: Option<String>, pub devices: Vec<String>, pub restart: Option<String>, pub labels: Labels, pub tmpfs: Option<Tmpfs>, pub ulimits: Ulimits, pub volumes: Vec<Volumes>, pub networks: Networks, pub cap_add: Vec<String>, pub cap_drop: Vec<String>, pub depends_on: DependsOnOptions, pub command: Option<Command>, pub entrypoint: Option<Entrypoint>, pub env_file: Option<EnvFile>, pub stop_grace_period: Option<String>, pub profiles: Vec<String>, pub links: Vec<String>, pub dns: Vec<String>, pub ipc: Option<String>, pub net: Option<String>, pub stop_signal: Option<String>, pub user: Option<String>, pub userns_mode: Option<String>, pub working_dir: Option<String>, pub expose: Vec<String>, pub volumes_from: Vec<String>, pub extends: 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: Vec<String>, pub group_add: Vec<String>, pub tty: bool, pub sysctls: SysCtls, pub security_opt: Vec<String>, pub secrets: Option<Secrets>, pub pull_policy: Option<PullPolicy>,
}

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: Ports§environment: Environment§network_mode: Option<String>§devices: Vec<String>§restart: Option<String>§labels: Labels§tmpfs: Option<Tmpfs>§ulimits: Ulimits§volumes: Vec<Volumes>§networks: Networks§cap_add: Vec<String>§cap_drop: Vec<String>§depends_on: DependsOnOptions§command: Option<Command>§entrypoint: Option<Entrypoint>§env_file: Option<EnvFile>§stop_grace_period: Option<String>§profiles: Vec<String>§links: Vec<String>§dns: Vec<String>§ipc: Option<String>§net: Option<String>§stop_signal: Option<String>§user: Option<String>§userns_mode: Option<String>§working_dir: Option<String>§expose: Vec<String>§volumes_from: Vec<String>§extends: IndexMap<String, String>§logging: Option<LoggingParameters>§scale: i64§init: bool§stdin_open: bool§shm_size: Option<String>§extensions: IndexMap<Extension, Value>§extra_hosts: Vec<String>§group_add: Vec<String>§tty: bool§sysctls: SysCtls§security_opt: Vec<String>§secrets: Option<Secrets>§pull_policy: Option<PullPolicy>

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 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 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> 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,

§

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>,

§

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>,

§

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>,