Struct Service

Source
pub struct Service {
Show 83 fields pub attach: Option<bool>, pub build: Option<Build>, pub blkio_config: Option<BlkioConfig>, pub cpu_count: Option<u8>, pub cpu_percent: Option<f32>, pub cpu_shares: Option<u32>, pub cpu_period: Option<String>, pub cpu_quota: Option<String>, pub cpu_rt_runtime: Option<String>, pub cpu_rt_period: Option<String>, pub cpus: Option<f32>, pub cpuset: Option<u8>, pub cap_add: Option<Vec<Capabilities>>, pub cap_drop: Option<Vec<Capabilities>>, pub cgroup: Option<Cgroup>, pub cgroup_parent: Option<String>, pub command: Option<Command>, pub configs: Option<Vec<Config>>, pub container_name: Option<String>, pub credential_spec: Option<CredentialSpec>, pub depends_on: Option<DependsOn>, pub deploy: Option<Deploy>, pub device_cgroup_rules: Option<Vec<String>>, pub devices: Option<Vec<String>>, pub dns: Option<Labels>, pub dns_opt: Option<Vec<String>>, pub dns_search: Option<Labels>, pub domainname: Option<String>, pub entrypoint: Option<Labels>, pub env_file: Option<Labels>, pub environment: Option<Labels>, pub expose: Option<Vec<String>>, pub extends: Option<Extends>, pub annotations: Option<Labels>, pub external_links: Option<Vec<String>>, pub extra_hosts: Option<Labels>, pub group_add: Option<Vec<String>>, pub healthcheck: Option<HealthCheck>, pub hostname: Option<String>, pub image: Option<String>, pub init: Option<bool>, pub ipc: Option<String>, pub uts: Option<String>, pub isolation: Option<String>, pub labels: Option<Labels>, pub links: Option<Vec<String>>, pub logging: Option<Logging>, pub network_mode: Option<String>, pub networks: Option<Networks>, pub mac_address: Option<String>, pub mem_limit: Option<String>, pub mem_reservation: Option<String>, pub mem_swappiness: Option<u8>, pub memswap_limit: Option<String>, pub oom_kill_disable: Option<bool>, pub oom_score_adj: Option<i16>, pub pid: Option<u32>, pub pids_limit: Option<u32>, pub platform: Option<String>, pub ports: Option<Ports>, pub privileged: Option<bool>, pub profiles: Option<Vec<String>>, pub pull_policy: Option<PullPolicy>, pub read_only: Option<bool>, pub restart: Option<Restart>, pub runtime: Option<String>, pub scale: Option<u32>, pub secrets: Option<Vec<Secret>>, pub secruity_opt: Option<Vec<String>>, pub shm_size: Option<String>, pub stdin_open: Option<String>, pub stop_grace_period: Option<String>, pub stop_signal: Option<String>, pub storage_opt: Option<String>, pub sysctls: Option<Labels>, pub tmpfs: Option<Tmpfs>, pub tty: Option<String>, pub ulimits: Option<Ulimits>, pub user: Option<String>, pub userns_mode: Option<String>, pub volumes: Option<Vec<Volumes>>, pub volumes_from: Option<Vec<String>>, pub working_dir: Option<String>,
}
Expand description

Represents the top level Service element

Fields§

§attach: Option<bool>§build: Option<Build>§blkio_config: Option<BlkioConfig>§cpu_count: Option<u8>§cpu_percent: Option<f32>§cpu_shares: Option<u32>§cpu_period: Option<String>§cpu_quota: Option<String>§cpu_rt_runtime: Option<String>§cpu_rt_period: Option<String>§cpus: Option<f32>§cpuset: Option<u8>§cap_add: Option<Vec<Capabilities>>§cap_drop: Option<Vec<Capabilities>>§cgroup: Option<Cgroup>§cgroup_parent: Option<String>§command: Option<Command>§configs: Option<Vec<Config>>§container_name: Option<String>§credential_spec: Option<CredentialSpec>§depends_on: Option<DependsOn>§deploy: Option<Deploy>§device_cgroup_rules: Option<Vec<String>>§devices: Option<Vec<String>>§dns: Option<Labels>§dns_opt: Option<Vec<String>>§dns_search: Option<Labels>§domainname: Option<String>§entrypoint: Option<Labels>§env_file: Option<Labels>§environment: Option<Labels>§expose: Option<Vec<String>>§extends: Option<Extends>§annotations: Option<Labels>§external_links: Option<Vec<String>>§extra_hosts: Option<Labels>§group_add: Option<Vec<String>>§healthcheck: Option<HealthCheck>§hostname: Option<String>§image: Option<String>§init: Option<bool>§ipc: Option<String>§uts: Option<String>§isolation: Option<String>§labels: Option<Labels>§links: Option<Vec<String>>§logging: Option<Logging>§network_mode: Option<String>§networks: Option<Networks>§mac_address: Option<String>§mem_limit: Option<String>§mem_reservation: Option<String>§mem_swappiness: Option<u8>§memswap_limit: Option<String>§oom_kill_disable: Option<bool>§oom_score_adj: Option<i16>§pid: Option<u32>§pids_limit: Option<u32>§platform: Option<String>§ports: Option<Ports>§privileged: Option<bool>§profiles: Option<Vec<String>>§pull_policy: Option<PullPolicy>§read_only: Option<bool>§restart: Option<Restart>§runtime: Option<String>§scale: Option<u32>§secrets: Option<Vec<Secret>>§secruity_opt: Option<Vec<String>>§shm_size: Option<String>§stdin_open: Option<String>§stop_grace_period: Option<String>§stop_signal: Option<String>§storage_opt: Option<String>§sysctls: Option<Labels>§tmpfs: Option<Tmpfs>§tty: Option<String>§ulimits: Option<Ulimits>§user: Option<String>§userns_mode: Option<String>§volumes: Option<Vec<Volumes>>§volumes_from: Option<Vec<String>>§working_dir: Option<String>

Trait Implementations§

Source§

impl Clone for Service

Source§

fn clone(&self) -> Service

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 Service

Source§

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

Formats the value using the given formatter. 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 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

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