pub struct RustSandboxConfig {
pub rustc_path: String,
pub rustc_flags: Vec<String>,
pub serde_json_path: Option<PathBuf>,
}Expand description
Configuration for the Rust sandbox executor.
§Example
use adk_code::RustSandboxConfig;
let config = RustSandboxConfig::default();
assert_eq!(config.rustc_path, "rustc");Fields§
§rustc_path: StringPath to the rustc compiler binary.
rustc_flags: Vec<String>Extra flags passed to rustc during compilation.
serde_json_path: Option<PathBuf>Path to the serde_json rlib or directory containing it.
If None, the executor will attempt to locate it automatically.
Trait Implementations§
Source§impl Clone for RustSandboxConfig
impl Clone for RustSandboxConfig
Source§fn clone(&self) -> RustSandboxConfig
fn clone(&self) -> RustSandboxConfig
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 RustSandboxConfig
impl Debug for RustSandboxConfig
Auto Trait Implementations§
impl Freeze for RustSandboxConfig
impl RefUnwindSafe for RustSandboxConfig
impl Send for RustSandboxConfig
impl Sync for RustSandboxConfig
impl Unpin for RustSandboxConfig
impl UnsafeUnpin for RustSandboxConfig
impl UnwindSafe for RustSandboxConfig
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