pub struct NormalizedServiceConfig {Show 22 fields
pub image: Option<String>,
pub entrypoint: Option<Vec<String>>,
pub command: Option<Vec<String>>,
pub environment: BTreeMap<String, String>,
pub env_file: Vec<String>,
pub ports: Vec<String>,
pub volumes: Vec<String>,
pub depends_on: BTreeMap<String, NormalizedDependsOn>,
pub networks: BTreeMap<String, NormalizedServiceNetwork>,
pub cpus: Option<u32>,
pub mem_limit: Option<String>,
pub restart: Option<String>,
pub dns: Vec<String>,
pub tmpfs: Vec<String>,
pub cap_add: Vec<String>,
pub cap_drop: Vec<String>,
pub privileged: bool,
pub labels: BTreeMap<String, String>,
pub healthcheck: Option<NormalizedHealthcheckConfig>,
pub working_dir: Option<String>,
pub hostname: Option<String>,
pub extra_hosts: Vec<String>,
}Expand description
Canonical service definition independent of ACL/YAML spelling.
Fields§
§image: Option<String>OCI image reference.
entrypoint: Option<Vec<String>>Tokenized entrypoint override.
command: Option<Vec<String>>Tokenized command override.
environment: BTreeMap<String, String>Canonically ordered inline environment.
env_file: Vec<String>Environment files in precedence order.
ports: Vec<String>Validated and normalized TCP port mappings.
volumes: Vec<String>Volume mounts in source order.
depends_on: BTreeMap<String, NormalizedDependsOn>Canonically ordered dependency conditions.
networks: BTreeMap<String, NormalizedServiceNetwork>Canonically ordered service networks.
cpus: Option<u32>Requested virtual CPU count.
mem_limit: Option<String>Compose memory limit.
restart: Option<String>Compose restart policy.
dns: Vec<String>DNS servers in source order.
tmpfs: Vec<String>tmpfs mounts in source order.
cap_add: Vec<String>Linux capabilities to add.
cap_drop: Vec<String>Linux capabilities to drop.
privileged: boolWhether privileged execution is requested.
labels: BTreeMap<String, String>Canonically ordered service labels.
healthcheck: Option<NormalizedHealthcheckConfig>Optional service health check.
working_dir: Option<String>Working directory inside the workload.
hostname: Option<String>Workload hostname.
extra_hosts: Vec<String>Static host entries in source order.
Trait Implementations§
Source§impl Clone for NormalizedServiceConfig
impl Clone for NormalizedServiceConfig
Source§fn clone(&self) -> NormalizedServiceConfig
fn clone(&self) -> NormalizedServiceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalizedServiceConfig
impl Debug for NormalizedServiceConfig
impl Eq for NormalizedServiceConfig
Source§impl From<NormalizedServiceConfig> for ServiceConfig
impl From<NormalizedServiceConfig> for ServiceConfig
Source§fn from(service: NormalizedServiceConfig) -> Self
fn from(service: NormalizedServiceConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NormalizedServiceConfig
impl PartialEq for NormalizedServiceConfig
Source§impl Serialize for NormalizedServiceConfig
impl Serialize for NormalizedServiceConfig
impl StructuralPartialEq for NormalizedServiceConfig
Auto Trait Implementations§
impl Freeze for NormalizedServiceConfig
impl RefUnwindSafe for NormalizedServiceConfig
impl Send for NormalizedServiceConfig
impl Sync for NormalizedServiceConfig
impl Unpin for NormalizedServiceConfig
impl UnsafeUnpin for NormalizedServiceConfig
impl UnwindSafe for NormalizedServiceConfig
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.