pub struct ContainerSpec {
pub image: String,
pub command: Option<Vec<String>>,
pub args: Vec<String>,
pub env: TaskEnv,
}Expand description
Specification for OCI-compatible container execution.
Fields§
§image: StringContainer image (e.g. "nginx:latest", "docker.io/library/redis:7").
command: Option<Vec<String>>Override container entrypoint.
args: Vec<String>Arguments passed to the container entrypoint.
env: TaskEnvEnvironment variables for the container.
Implementations§
Source§impl ContainerSpec
impl ContainerSpec
Sourcepub fn validate(&self) -> ModelResult<()>
pub fn validate(&self) -> ModelResult<()>
Validate structural constraints.
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<'de> Deserialize<'de> for ContainerSpec
impl<'de> Deserialize<'de> for ContainerSpec
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
Source§impl PartialEq for ContainerSpec
impl PartialEq for ContainerSpec
Source§impl Serialize for ContainerSpec
impl Serialize for ContainerSpec
impl Eq for ContainerSpec
impl StructuralPartialEq for ContainerSpec
Auto Trait Implementations§
impl Freeze for ContainerSpec
impl RefUnwindSafe for ContainerSpec
impl Send for ContainerSpec
impl Sync for ContainerSpec
impl Unpin for ContainerSpec
impl UnsafeUnpin 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