pub struct WorkloadRequest {
pub env: BTreeMap<String, String>,
pub secrets: Vec<RequestedSecret>,
pub cpu: Option<String>,
pub memory: Option<String>,
pub replicas: Option<u32>,
}Expand description
What the control plane supplies when it asks an enforcer to run one replica of a workload. Nothing here can change the code that runs.
Fields§
§env: BTreeMap<String, String>The full environment the control plane computed. Signed names must carry their signed value; other names must be provided or configured.
secrets: Vec<RequestedSecret>Secrets the control plane delivers, by name, with where they land.
cpu: Option<String>CPU per replica.
memory: Option<String>Memory per replica.
replicas: Option<u32>Replica count the control plane wants.
Trait Implementations§
Source§impl Clone for WorkloadRequest
impl Clone for WorkloadRequest
Source§impl Debug for WorkloadRequest
impl Debug for WorkloadRequest
Auto Trait Implementations§
impl Forget for WorkloadRequest
impl Freeze for WorkloadRequest
impl Move for WorkloadRequest
impl RefUnwindSafe for WorkloadRequest
impl Send for WorkloadRequest
impl Sync for WorkloadRequest
impl Unpin for WorkloadRequest
impl UnsafeUnpin for WorkloadRequest
impl UnwindSafe for WorkloadRequest
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