pub struct PodCreateOptions {Show 23 fields
pub cgroup_parent: Option<String>,
pub container_command: Option<String>,
pub container_conmon_pidfile: Option<String>,
pub container_name: Option<String>,
pub cpus: Option<f64>,
pub cpuset_cpus: Option<String>,
pub create_command: Option<Vec<String>>,
pub device_read_bps: Option<Vec<String>>,
pub devices: Option<Vec<String>>,
pub exit_policy: Option<String>,
pub hostname: Option<String>,
pub infra: Option<bool>,
pub infra_image: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub net: Option<NetOptions>,
pub pid: Option<String>,
pub security_opt: Option<Vec<String>>,
pub share: Option<Vec<String>>,
pub share_parent: Option<bool>,
pub sysctl: Option<Vec<String>>,
pub volume: Option<Vec<String>>,
pub volumes_from: Option<Vec<String>>,
}
Expand description
The JSON tags below are made to match the respective field in ContainerCreateOptions for the purpose of mapping.
Fields§
§cgroup_parent: Option<String>
§container_command: Option<String>
§container_conmon_pidfile: Option<String>
§container_name: Option<String>
§cpus: Option<f64>
§cpuset_cpus: Option<String>
§create_command: Option<Vec<String>>
§device_read_bps: Option<Vec<String>>
§devices: Option<Vec<String>>
§exit_policy: Option<String>
§hostname: Option<String>
§infra: Option<bool>
§infra_image: Option<String>
§labels: Option<HashMap<String, String>>
§name: Option<String>
§net: Option<NetOptions>
§pid: Option<String>
§security_opt: Option<Vec<String>>
§sysctl: Option<Vec<String>>
§volume: Option<Vec<String>>
§volumes_from: Option<Vec<String>>
Trait Implementations§
Source§impl Clone for PodCreateOptions
impl Clone for PodCreateOptions
Source§fn clone(&self) -> PodCreateOptions
fn clone(&self) -> PodCreateOptions
Returns a copy of the value. Read more
1.0.0 · 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 PodCreateOptions
impl Debug for PodCreateOptions
Source§impl<'de> Deserialize<'de> for PodCreateOptions
impl<'de> Deserialize<'de> for PodCreateOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PodCreateOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PodCreateOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PodCreateOptions
impl PartialEq for PodCreateOptions
Source§impl Serialize for PodCreateOptions
impl Serialize for PodCreateOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PodCreateOptions
Auto Trait Implementations§
impl Freeze for PodCreateOptions
impl RefUnwindSafe for PodCreateOptions
impl Send for PodCreateOptions
impl Sync for PodCreateOptions
impl Unpin for PodCreateOptions
impl UnwindSafe for PodCreateOptions
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