Struct docker_api::api::task::models::ContainerSpec
source · [−]pub struct ContainerSpec {Show 26 fields
pub image: Option<String>,
pub labels: Option<Labels>,
pub command: Option<Vec<String>>,
pub args: Option<Vec<String>>,
pub hostname: Option<String>,
pub env: Option<Vec<String>>,
pub dir: Option<String>,
pub user: Option<String>,
pub groups: Option<Vec<String>>,
pub privileges: Option<Privileges>,
pub tty: Option<bool>,
pub open_stdin: Option<bool>,
pub read_only: Option<bool>,
pub mounts: Option<Vec<Mount>>,
pub stop_signal: Option<String>,
pub health_check: Option<HealthConfig>,
pub hosts: Option<Vec<String>>,
pub dns_config: Option<DnsConfig>,
pub configs: Option<Vec<ConfigReference>>,
pub secrets: Option<Vec<SecretReference>>,
pub isolation: Option<Isolation>,
pub init: Option<bool>,
pub sysctls: Option<Sysctls>,
pub capability_add: Option<Vec<String>>,
pub capability_drop: Option<Vec<String>>,
pub ulimits: Option<Vec<Ulimit>>,
}
Available on crate feature
swarm
only.Fields
image: Option<String>
labels: Option<Labels>
command: Option<Vec<String>>
args: Option<Vec<String>>
hostname: Option<String>
env: Option<Vec<String>>
dir: Option<String>
user: Option<String>
groups: Option<Vec<String>>
privileges: Option<Privileges>
tty: Option<bool>
open_stdin: Option<bool>
read_only: Option<bool>
mounts: Option<Vec<Mount>>
stop_signal: Option<String>
health_check: Option<HealthConfig>
hosts: Option<Vec<String>>
dns_config: Option<DnsConfig>
configs: Option<Vec<ConfigReference>>
secrets: Option<Vec<SecretReference>>
isolation: Option<Isolation>
init: Option<bool>
sysctls: Option<Sysctls>
capability_add: Option<Vec<String>>
capability_drop: Option<Vec<String>>
ulimits: Option<Vec<Ulimit>>
Trait Implementations
sourceimpl Clone for ContainerSpec
impl Clone for ContainerSpec
sourcefn clone(&self) -> ContainerSpec
fn clone(&self) -> ContainerSpec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ContainerSpec
impl Debug for ContainerSpec
sourceimpl<'de> Deserialize<'de> for ContainerSpec
impl<'de> Deserialize<'de> for ContainerSpec
sourcefn 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
sourceimpl Serialize for ContainerSpec
impl Serialize for ContainerSpec
Auto Trait Implementations
impl RefUnwindSafe for ContainerSpec
impl Send for ContainerSpec
impl Sync for ContainerSpec
impl Unpin for ContainerSpec
impl UnwindSafe for ContainerSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more