qemu_command_builder/
global.rs1use bon::Builder;
2
3use crate::to_command::ToCommand;
4
5#[derive(Default, Builder)]
7pub struct Global {
8 driver: String,
9 property: String,
10 value: String,
11}
12
13impl ToCommand for Global {
14 fn to_command(&self) -> Vec<String> {
15 let mut cmd = vec!["-global".to_string()];
16
17 let mut args = vec![format!("driver={}", self.driver)];
18 args.push(format!(",property={}", self.property));
19 args.push(format!(",value={}", self.value));
20
21 cmd.push(args.join(","));
22 cmd
23 }
24}