pub struct RunReq {
pub env: Option<Vec<EnvVarJson>>,
pub gpu: Option<i32>,
pub image: Option<String>,
pub max_scale: Option<i32>,
pub min_scale: Option<i32>,
pub name: Option<String>,
pub port: Option<i32>,
pub runtime: Option<String>,
pub shape: Option<String>,
}Fields§
§env: Option<Vec<EnvVarJson>>Env is the run’s environment. Keys must match ^[A-Za-z_][A-Za-z0-9_]*$; a variable marked secret: true is sealed into KMS.
gpu: Option<i32>GPU is how many GPUs the run asks for; a negative value is 400.
image: Option<String>Image is the container image to run. Required.
max_scale: Option<i32>MaxScale above the floor declares an autoscaling ceiling; 0 means no autoscaler at all — a fixed run at the floor.
min_scale: Option<i32>MinScale is the replica floor, clamped to the deployment’s limit.
name: Option<String>Name is the run’s name, and the slug is derived from it. Required, and it must resolve to ^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?$. Re-running the same name updates that run in place.
port: Option<i32>Port is the container port the run listens on.
runtime: Option<String>Runtime is accepted for the client contract and echoed nowhere: the image IS the runtime unit.
shape: Option<String>Shape is a compute size label, echoed back; sizing is the operator’s default. Defaults to "auto".