0.0.2
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
// file: kb_app/src/splash.rs
|
||||
|
||||
//! Shared splash-screen payload types.
|
||||
//!
|
||||
//! These types are serialized by the Rust backend and exported to the
|
||||
//! TypeScript frontend through `ts-rs`.
|
||||
|
||||
/// Command payload sent from Rust to the splash frontend.
|
||||
#[derive(serde::Serialize, serde::Deserialize, Clone, Debug, ts_rs::TS)]
|
||||
#[ts(export, export_to = "../frontend/ts/bindings/SplashOrder.ts")]
|
||||
pub struct SplashOrder {
|
||||
pub order: String,
|
||||
pub msg: Option<String>,
|
||||
pub status: Option<String>,
|
||||
}
|
||||
/// Splash command name such as `fadein`, `fadeout`, `add_msg`, or `add_log`.
|
||||
pub order: std::string::String,
|
||||
/// Optional message payload attached to the command.
|
||||
pub msg: std::option::Option<std::string::String>,
|
||||
/// Optional status payload attached to the command.
|
||||
pub status: std::option::Option<std::string::String>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user