mirror of
https://github.com/edera-dev/sprout.git
synced 2026-02-05 07:20:17 +00:00
22 lines
769 B
Rust
22 lines
769 B
Rust
use alloc::collections::BTreeMap;
|
|
use alloc::string::String;
|
|
use alloc::vec::Vec;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
/// Declares a boot entry to display in the boot menu.
|
|
///
|
|
/// Entries are the user-facing concept of Sprout, making it possible
|
|
/// to run a set of actions with a specific context.
|
|
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
|
|
pub struct EntryDeclaration {
|
|
/// The title of the entry which will be display in the boot menu.
|
|
/// This is the pre-stamped value.
|
|
pub title: String,
|
|
/// The actions to run when the entry is selected.
|
|
#[serde(default)]
|
|
pub actions: Vec<String>,
|
|
/// The values to insert into the context when the entry is selected.
|
|
#[serde(default)]
|
|
pub values: BTreeMap<String, String>,
|
|
}
|