v0.1.0-pre.058
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-app-demo-desktop/src/demo_backfill.rs
|
||||
// version: 11
|
||||
// version: 12
|
||||
|
||||
//! Tauri commands and UI payloads for bounded HTTP transaction backfills.
|
||||
|
||||
@@ -20,6 +20,20 @@ pub(crate) struct DemoBackfillRoleOption {
|
||||
pub(crate) providers: 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_backfill/DemoBackfillProgramOption.ts"
|
||||
)]
|
||||
pub(crate) struct DemoBackfillProgramOption {
|
||||
/// Stable program code.
|
||||
pub(crate) code: std::string::String,
|
||||
/// Canonical program identifier.
|
||||
pub(crate) program_id: std::string::String,
|
||||
}
|
||||
|
||||
/// Initial options shown by the backfill demo.
|
||||
#[derive(Clone, Debug, serde::Serialize, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
@@ -30,6 +44,8 @@ pub(crate) struct DemoBackfillRoleOption {
|
||||
pub(crate) struct DemoBackfillOptionsPayload {
|
||||
/// Selectable endpoint roles.
|
||||
pub(crate) roles: std::vec::Vec<crate::DemoBackfillRoleOption>,
|
||||
/// Known programs offered as non-blocking autocomplete suggestions.
|
||||
pub(crate) programs: std::vec::Vec<crate::DemoBackfillProgramOption>,
|
||||
/// Preferred role when configured.
|
||||
pub(crate) default_role: std::option::Option<std::string::String>,
|
||||
/// Default transaction commitment.
|
||||
|
||||
Reference in New Issue
Block a user