Struct docker_compose_types::Service
source · pub struct Service {Show 52 fields
pub hostname: 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>,
}
Fields§
§hostname: 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>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
impl PartialEq for Service
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)