pub struct LaunchRequest {
pub project: String,
pub workload: String,
pub replica: u32,
pub spec: ComputeSpec,
pub artifact: Artifact,
}Expand description
The request to launch one replica.
Fields§
§project: StringThe owning project — the first dimension of the replica identity, so two
projects each with a same-named workload can’t collide on the backend’s
derived id/cgroup/veth/IP. default yields the bare, pre-project identity
(see compute_instance_id).
workload: StringWorkload name (for naming / teardown / logging).
replica: u32Replica ordinal within the workload (0..replicas).
spec: ComputeSpecThe immutable spec to run.
artifact: ArtifactThe materialized artifact for spec.
Trait Implementations§
Source§impl Clone for LaunchRequest
impl Clone for LaunchRequest
Source§fn clone(&self) -> LaunchRequest
fn clone(&self) -> LaunchRequest
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 moreAuto Trait Implementations§
impl Freeze for LaunchRequest
impl RefUnwindSafe for LaunchRequest
impl Send for LaunchRequest
impl Sync for LaunchRequest
impl Unpin for LaunchRequest
impl UnsafeUnpin for LaunchRequest
impl UnwindSafe for LaunchRequest
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