pub struct DeployRequest {Show 19 fields
pub name: String,
pub image: String,
pub command: Vec<String>,
pub args: Vec<String>,
pub environment: HashMap<String, String>,
pub labels: HashMap<String, String>,
pub annotations: HashMap<String, String>,
pub work_dir: String,
pub resources: Option<ResourceConfig>,
pub network: Option<NetworkConfig>,
pub volumes: Vec<VolumeMount>,
pub ports: Vec<PortMapping>,
pub restart_policy: RestartPolicy,
pub auto_remove: bool,
pub replicas: u32,
pub timeout: Option<Duration>,
pub platform: String,
pub namespace: String,
pub service_account: String,
}Expand description
Describes a workload to deploy.
Construct with DeployRequest::new and set the remaining fields directly.
Fields§
§name: StringHuman-readable identifier (container name, pod name).
image: StringImage reference.
command: Vec<String>Override entrypoint/command.
args: Vec<String>Arguments passed to the command.
environment: HashMap<String, String>Environment variables.
labels: HashMap<String, String>Key-value pairs for filtering and grouping.
annotations: HashMap<String, String>Metadata annotations (Kubernetes).
work_dir: StringWorking directory inside the workload.
resources: Option<ResourceConfig>CPU/memory constraints.
network: Option<NetworkConfig>Network configuration.
volumes: Vec<VolumeMount>Mount points.
ports: Vec<PortMapping>Port mappings.
restart_policy: RestartPolicyRestart behavior after exit.
auto_remove: boolRemove the workload after it exits (Docker).
replicas: u32Number of replicas (Kubernetes); 0 means the provider default.
timeout: Option<Duration>Maximum run time; None means no limit.
platform: StringTarget platform (e.g. "linux/amd64").
namespace: StringNamespace (Kubernetes); empty means the default namespace.
service_account: StringService account (Kubernetes).
Implementations§
Trait Implementations§
Source§impl Clone for DeployRequest
impl Clone for DeployRequest
Source§fn clone(&self) -> DeployRequest
fn clone(&self) -> DeployRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeployRequest
impl Debug for DeployRequest
Source§impl Default for DeployRequest
impl Default for DeployRequest
Source§fn default() -> DeployRequest
fn default() -> DeployRequest
Returns the “default value” for a type. Read more
impl Eq for DeployRequest
Source§impl PartialEq for DeployRequest
impl PartialEq for DeployRequest
impl StructuralPartialEq for DeployRequest
Auto Trait Implementations§
impl Freeze for DeployRequest
impl RefUnwindSafe for DeployRequest
impl Send for DeployRequest
impl Sync for DeployRequest
impl Unpin for DeployRequest
impl UnsafeUnpin for DeployRequest
impl UnwindSafe for DeployRequest
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