v0.2.12-pre.004
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// file: crates/ksp-app-solprices-desk/src/dto_common.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
//! Common Tauri DTOs shared by the SOL Prices Desk bootstrap shell.
|
||||
//! Common Tauri DTOs shared by the SOL Prices Desk shell.
|
||||
|
||||
use ts_rs::TS; // rust-rules: trait-import
|
||||
|
||||
@@ -30,11 +30,11 @@ impl crate::CommandErrorDto {
|
||||
}
|
||||
}
|
||||
|
||||
/// Safe Config/bootstrap snapshot exposed before market-price provider rows exist.
|
||||
/// Safe provider-neutral application/runtime snapshot exposed to the SOL Prices Desk shell.
|
||||
#[derive(Clone, Debug, serde::Serialize, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export, export_to = "../frontend/ts/bindings/ksp_app_solprices_desk/dto_common/RuntimeStatusDto.ts")]
|
||||
pub(crate) struct RuntimeStatusDto {
|
||||
#[ts(export, export_to = "../frontend/ts/bindings/ksp_app_solprices_desk/dto_common/MarketPriceRuntimeStatusDto.ts")]
|
||||
pub(crate) struct MarketPriceRuntimeStatusDto {
|
||||
/// SOL Prices Desk composite profile selected for this launch.
|
||||
pub(crate) active_composite_profile: String,
|
||||
/// Active configured Logging profile, or `None` while transient fallback Logging is active.
|
||||
@@ -47,10 +47,16 @@ pub(crate) struct RuntimeStatusDto {
|
||||
pub(crate) config_document_count: u32,
|
||||
/// Whether SOL Prices Desk had to install its transient in-memory Logging fallback.
|
||||
pub(crate) fallback_logging_active: bool,
|
||||
/// Current implementation phase exposed by the bootstrap shell.
|
||||
/// Total number of configured provider-neutral market-price rows.
|
||||
pub(crate) provider_count: u32,
|
||||
/// Number of providers currently classified as immediately ready.
|
||||
pub(crate) ready_provider_count: u32,
|
||||
/// Current implementation phase exposed by the shell.
|
||||
pub(crate) shell_phase: String,
|
||||
/// Safe startup diagnostic that caused fallback Logging, when applicable.
|
||||
pub(crate) startup_diagnostic: std::option::Option<CommandErrorDto>,
|
||||
/// Number of providers currently not classified as immediately ready.
|
||||
pub(crate) unavailable_provider_count: u32,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user