pub struct ContainerSpec {
pub name: String,
pub args: Vec<String>,
pub command: Vec<String>,
pub ports: Vec<ContainerPortSpec>,
pub image: Option<String>,
pub image_pull_policy: Option<String>,
pub volume_mounts: Vec<VolumeMount>,
pub env: Vec<Env>,
pub resources: Option<ResourceRequirements>,
pub termination_mssage_path: Option<String>,
pub termination_message_policy: Option<String>,
pub tty: Option<bool>,
}
Fields§
§name: String
§args: Vec<String>
§command: Vec<String>
§ports: Vec<ContainerPortSpec>
§image: Option<String>
§image_pull_policy: Option<String>
§volume_mounts: Vec<VolumeMount>
§env: Vec<Env>
§resources: Option<ResourceRequirements>
§termination_mssage_path: Option<String>
§termination_message_policy: Option<String>
§tty: Option<bool>
Trait Implementations§
Source§impl Clone for ContainerSpec
impl Clone for ContainerSpec
Source§fn clone(&self) -> ContainerSpec
fn clone(&self) -> ContainerSpec
Returns a duplicate 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 ContainerSpec
impl Debug for ContainerSpec
Source§impl Default for ContainerSpec
impl Default for ContainerSpec
Source§fn default() -> ContainerSpec
fn default() -> ContainerSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerSpecwhere
ContainerSpec: Default,
impl<'de> Deserialize<'de> for ContainerSpecwhere
ContainerSpec: Default,
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
Auto Trait Implementations§
impl Freeze for ContainerSpec
impl RefUnwindSafe for ContainerSpec
impl Send for ContainerSpec
impl Sync for ContainerSpec
impl Unpin for ContainerSpec
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