#[non_exhaustive]pub struct ContainerSpec {
pub image_uri: String,
pub command: Vec<String>,
pub args: Vec<String>,
pub env: Vec<EnvVar>,
/* private fields */
}Available on crate feature
job-service only.Expand description
The spec of a Container.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.image_uri: StringRequired. The URI of a container image in the Container Registry that is to be run on each worker replica.
command: Vec<String>The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.
args: Vec<String>The arguments to be passed when starting the container.
env: Vec<EnvVar>Environment variables to be passed to the container. Maximum limit is 100.
Implementations§
Source§impl ContainerSpec
impl ContainerSpec
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 Message for ContainerSpec
impl Message for ContainerSpec
Source§impl PartialEq for ContainerSpec
impl PartialEq 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 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