v0.1.0-pre.060
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-app-demo-desktop/src/demo_decode_replay.rs
|
||||
// version: 29
|
||||
// version: 30
|
||||
|
||||
//! Tauri commands and UI payloads for contextual instruction decode replay.
|
||||
|
||||
@@ -22,6 +22,20 @@ pub(crate) struct DemoDecodeReplayDecoderOption {
|
||||
pub(crate) program_ids: std::vec::Vec<std::string::String>,
|
||||
}
|
||||
|
||||
/// One known program suggested by the free-form Program ID field.
|
||||
#[derive(Clone, Debug, serde::Serialize, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_app_demo_desktop/demo_decode_replay/DemoDecodeReplayProgramOption.ts"
|
||||
)]
|
||||
pub(crate) struct DemoDecodeReplayProgramOption {
|
||||
/// Stable program code.
|
||||
pub(crate) code: std::string::String,
|
||||
/// Canonical program identifier.
|
||||
pub(crate) program_id: std::string::String,
|
||||
}
|
||||
|
||||
/// Initial options shown by the contextual decode replay demo.
|
||||
#[derive(Clone, Debug, serde::Serialize, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
@@ -36,6 +50,8 @@ pub(crate) struct DemoDecodeReplayOptionsPayload {
|
||||
pub(crate) decoders: std::vec::Vec<crate::DemoDecodeReplayDecoderOption>,
|
||||
/// Stable names of materializers currently registered by the demo.
|
||||
pub(crate) materializer_names: std::vec::Vec<std::string::String>,
|
||||
/// Known programs offered as non-blocking autocomplete suggestions.
|
||||
pub(crate) programs: std::vec::Vec<crate::DemoDecodeReplayProgramOption>,
|
||||
/// Default bounded selection limit.
|
||||
pub(crate) default_limit: u32,
|
||||
/// Default maximum concurrent contextual inputs.
|
||||
|
||||
Reference in New Issue
Block a user