pub struct ContainerSpec {Show 22 fields
pub name: String,
pub image: String,
pub command: Vec<String>,
pub args: Vec<String>,
pub env: Vec<String>,
pub working_dir: Option<String>,
pub ports: Vec<PortSpec>,
pub labels: BTreeMap<String, String>,
pub restart: RestartPolicy,
pub memory_bytes: Option<i64>,
pub nano_cpus: Option<i64>,
pub mounts: Vec<Mount>,
pub hostname: Option<String>,
pub dns_search: Vec<String>,
pub dns_options: Vec<String>,
pub network: Option<String>,
pub aliases: Vec<String>,
pub user: Option<String>,
pub tty: bool,
pub stdin: bool,
pub allow_privilege_escalation: bool,
pub read_only_root: bool,
}Fields§
§name: String§image: String§command: Vec<String>§args: Vec<String>§env: Vec<String>§working_dir: Option<String>§ports: Vec<PortSpec>§labels: BTreeMap<String, String>§restart: RestartPolicy§memory_bytes: Option<i64>§nano_cpus: Option<i64>§mounts: Vec<Mount>§hostname: Option<String>§dns_search: Vec<String>§dns_options: Vec<String>§network: Option<String>§aliases: Vec<String>§user: Option<String>§tty: bool§stdin: bool§allow_privilege_escalation: bool§read_only_root: boolTrait Implementations§
Source§impl Clone for ContainerSpec
impl Clone for ContainerSpec
Source§impl Debug for ContainerSpec
impl Debug for ContainerSpec
Source§impl Default for ContainerSpec
impl Default for ContainerSpec
Source§impl PartialEq for ContainerSpec
impl PartialEq for ContainerSpec
impl StructuralPartialEq for ContainerSpec
Auto Trait Implementations§
impl Forget for ContainerSpec
impl Freeze for ContainerSpecwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<PortSpec>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Mount>: Freeze,
impl Move for ContainerSpec
impl RefUnwindSafe for ContainerSpec
impl Send for ContainerSpec
impl Sync for ContainerSpec
impl Unpin for ContainerSpec
impl UnsafeUnpin for ContainerSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PortSpec>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Mount>: UnsafeUnpin,
impl UnwindSafe for ContainerSpec
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