pub struct PlacementPlan {
pub schema_version: String,
pub requested_worker: Option<String>,
pub requested_profile: Option<String>,
pub effective_worker: Option<String>,
pub strict_remote_policy: StrictRemotePolicy,
pub queue_policy: QueuePolicy,
pub visibility_mode: VisibilityMode,
pub wait_timeout_ms: Option<u64>,
pub target_dir_policy: TargetDirPolicy,
pub requested_worker_outcome: RequestedWorkerOutcome,
pub diagnostics: Vec<ControlDiagnostic>,
}Expand description
The canonical, agent-facing resolution of all placement controls for a single request. Field names are exactly the explicit-control surface the session-history report asked to be made first-class.
Fields§
§schema_version: StringSchema version (SchemaComponent::PlacementPlan).
requested_worker: Option<String>Worker(s) the caller explicitly requested.
requested_profile: Option<String>Requested execution profile.
effective_worker: Option<String>The worker actually selected (filled once selection runs).
strict_remote_policy: StrictRemotePolicyStrict-remote / proof policy.
queue_policy: QueuePolicyQueue-when-busy policy.
visibility_mode: VisibilityModeOutput visibility mode.
wait_timeout_ms: Option<u64>Resolved wait timeout in milliseconds, when explicitly set.
target_dir_policy: TargetDirPolicyWorker-scoped target-dir policy.
requested_worker_outcome: RequestedWorkerOutcomeRequested-worker admissibility outcome.
diagnostics: Vec<ControlDiagnostic>How each control was interpreted (superseded aliases, bad values, …).
Implementations§
Source§impl PlacementPlan
impl PlacementPlan
Sourcepub fn schema_version() -> &'static str
pub fn schema_version() -> &'static str
The current placement-plan schema version.
Sourcepub fn with_effective_worker(self, worker: Option<String>) -> Self
pub fn with_effective_worker(self, worker: Option<String>) -> Self
Record the worker selection finally honored.
Sourcepub fn with_requested_worker_outcome(
self,
outcome: RequestedWorkerOutcome,
) -> Self
pub fn with_requested_worker_outcome( self, outcome: RequestedWorkerOutcome, ) -> Self
Replace the requested-worker outcome (after fleet evaluation).
Sourcepub fn control_state(&self) -> ControlState
pub fn control_state(&self) -> ControlState
Bridge to the sparse ControlState embedded in incident events: only
explicitly-set / non-default fields are carried, matching the
incident-ledger convention of recording why a build was steered.
Trait Implementations§
Source§impl Clone for PlacementPlan
impl Clone for PlacementPlan
Source§impl Debug for PlacementPlan
impl Debug for PlacementPlan
Source§impl<'de> Deserialize<'de> for PlacementPlan
impl<'de> Deserialize<'de> for PlacementPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PlacementPlan
Source§impl JsonSchema for PlacementPlan
impl JsonSchema for PlacementPlan
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for PlacementPlan
impl PartialEq for PlacementPlan
Source§impl Serialize for PlacementPlan
impl Serialize for PlacementPlan
impl StructuralPartialEq for PlacementPlan
Auto Trait Implementations§
impl Freeze for PlacementPlan
impl RefUnwindSafe for PlacementPlan
impl Send for PlacementPlan
impl Sync for PlacementPlan
impl Unpin for PlacementPlan
impl UnsafeUnpin for PlacementPlan
impl UnwindSafe for PlacementPlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.