pub struct SpawnConfig {
pub runtime: Option<String>,
pub command: Option<String>,
pub sidecar: Option<String>,
pub script: Option<String>,
pub args: Option<Vec<String>>,
pub cwd: Option<String>,
pub env: Option<HashMap<String, String>>,
}Fields§
§runtime: Option<String>Runtime to use: “bun”, “deno”, or “node”
command: Option<String>Direct binary command (alternative to runtime)
sidecar: Option<String>Tauri sidecar binary name (as in externalBin config)
script: Option<String>Script file to run
args: Option<Vec<String>>Additional arguments
cwd: Option<String>Working directory
env: Option<HashMap<String, String>>Environment variables
Trait Implementations§
Source§impl Clone for SpawnConfig
impl Clone for SpawnConfig
Source§fn clone(&self) -> SpawnConfig
fn clone(&self) -> SpawnConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpawnConfig
impl Debug for SpawnConfig
Source§impl<'de> Deserialize<'de> for SpawnConfig
impl<'de> Deserialize<'de> for SpawnConfig
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 SpawnConfig
impl RefUnwindSafe for SpawnConfig
impl Send for SpawnConfig
impl Sync for SpawnConfig
impl Unpin for SpawnConfig
impl UnwindSafe for SpawnConfig
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