Remove the RuntimeBootstrap struct
Intent: Eliminate the intermediate `RuntimeBootstrap` struct that wrapped `guest_request_path` and `entry_command`, since `guest_request_path` was redundant with `RuntimePaths` and `entry_command` can live directly on the spec.
Affected files: crates/pika-cloud/src/spec.rs, crates/pika-cloud/src/lib.rs
@@ -27,14 +27,6 @@ pub struct RuntimeResources {
-#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
-pub struct RuntimeBootstrap {
- #[serde(skip_serializing_if = "Option::is_none")]
- pub guest_request_path: Option<String>,
- #[serde(skip_serializing_if = "Option::is_none")]
- pub entry_command: Option<String>,
-}
@@ -23,8 +23,7 @@ pub use policy::{
- IncusRuntimeConfig, RuntimeBootstrap, RuntimeIdentity, RuntimeResources, RuntimeSpec,
- RuntimeSpecError,
+ IncusRuntimeConfig, RuntimeIdentity, RuntimeResources, RuntimeSpec, RuntimeSpecError,
The RuntimeBootstrap struct carried two optional fields: guest_request_path and entry_command. Analysis showed that guest_request_path duplicated RuntimePaths::guest_request_path and required a cross-validation check (MismatchedGuestRequestPath) to keep them in sync. Rather than maintain this redundancy, the struct is deleted entirely.
In spec.rs, the struct definition and its Default derive are removed. The re-export in lib.rs is updated to drop RuntimeBootstrap from the public API surface.
The entry_command field is preserved but relocated (covered in the next step).