pub struct Config {
pub boot: BootConfig,
pub bootloader: BootloaderConfig,
pub image: ImageConfig,
pub runner: RunnerConfig,
pub test: TestConfig,
pub run: RunConfig,
pub variables: HashMap<String, String>,
pub extra_files: HashMap<String, String>,
pub verbose: bool,
}Expand description
Complete configuration for image runner.
Fields§
§boot: BootConfigBoot type configuration.
bootloader: BootloaderConfigBootloader configuration.
image: ImageConfigImage format configuration.
runner: RunnerConfigRunner configuration.
test: TestConfigTest-specific configuration.
run: RunConfigRun-specific configuration (non-test).
variables: HashMap<String, String>Template variables for substitution.
extra_files: HashMap<String, String>Extra files to include in the image (dest path → source path).
verbose: boolEnable verbose output (show build progress messages).
Implementations§
Source§impl Config
impl Config
Sourcepub fn from_toml_str(toml: &str) -> Result<Self>
pub fn from_toml_str(toml: &str) -> Result<Self>
Parse a Config directly from a TOML string.
This bypasses ConfigLoader entirely — no profiles, no env var overrides.
Useful for standalone/library consumers who don’t use cargo_metadata.
Sourcepub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self>
pub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self>
Parse a Config from a TOML file on disk.
This bypasses ConfigLoader entirely — no profiles, no env var overrides.
Useful for standalone/library consumers who don’t use cargo_metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more