Struct Service

Source
pub struct Service {
Show 57 fields pub hostname: Option<String>, pub domainname: Option<String>, pub privileged: bool, pub read_only: 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<Group>, pub tty: bool, pub sysctls: SysCtls, pub security_opt: Vec<String>, pub secrets: Option<Secrets>, pub pull_policy: Option<PullPolicy>, pub cgroup_parent: Option<String>, pub mem_limit: Option<String>, pub mem_reservation: Option<String>, pub mem_swappiness: Option<u16>, pub runtime: Option<String>,
}

Fields§

§hostname: Option<String>§domainname: Option<String>§privileged: bool§read_only: 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<Group>§tty: bool§sysctls: SysCtls§security_opt: Vec<String>§secrets: Option<Secrets>§pull_policy: Option<PullPolicy>§cgroup_parent: Option<String>§mem_limit: Option<String>§mem_reservation: Option<String>§mem_swappiness: Option<u16>§runtime: Option<String>

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 duplicate of the value. Read more
1.0.0 · Source§

const 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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